How to I get raw 'mouse' events with touch screens on Windows Vista/7?

Posted by Emil on Stack Overflow See other posts from Stack Overflow or by Emil
Published on 2010-03-23T11:10:58Z Indexed on 2010/03/23 11:13 UTC
Read the original article Hit count: 179

Filed under:
|
|

Does anyone have a clue how to completely disable the touch/tablet 'magic' introduced in Windows Vista?

When I follow the steps on http://msdn.microsoft.com/en-us/library/bb969148(VS.85).aspx (both SetProp disable and WM_TABLET_QUERYSYSTEMGESTURESTATUS override) I succeed in stopping windows from treating press-and-hold as a right-click (it correctly gives me a WM_LBUTTONDOWN), but it also gives me a premature WM_LBUTTONUP (before I really let go of the screen). And there is also another problem: a click followed by a drag (down, up, down, move) is treated as a double-click (down, up, down, up, move). These issues occur with two very different touch screens (so it is not a hardware problem), and it never used to happen with Windows XP.

This really bugs me. I would much rather have the raw input events like you have for normal mouse clicks. Any ideas?

© Stack Overflow or respective owner

Related posts about Vista

Related posts about touch