WM_TOUCH vs WM_POINTER

Which should i use? I only use Windows 8.x, so I do not care about the fact that WM_POINTER is not backward compatible with Windows 7, etc. I also don't like gestures; raw touches only. The advantage of WM_POINTER is that it combines sensory and muscle input (but this is easy to work with WM_TOUCH, since mouse events can be checked using GetMessageExtraInfo ()). Ease of use is also not a problem; I already use WM_TOUCH, and I'm just wondering if I should switch to WM_POINTER. My main problem is latency and efficiency (game application). I can’t say if WM_POINTER is a wrapper on top of WM_TOUCH that has extra overhead. Any comments?

+2
winapi touch multi-touch windows-messages wm-touch
source share
1 answer

WM_TOUCH deprecated. Use WM_POINTER exclusively. ( WM_TOUCH is actually a wrapper over WM_POINTER .)

GetMessageExtraInfo also known as fragile. You must call it immediately after calling GetMessage, otherwise you run the risk of making intermediate function calls that cause a COM call, or executing something else that will result in a GetMessage call.

+1
source share

All Articles