This project has moved and is read-only. For the latest updates, please go here.

Simulating touch by sending WM_GESTURE

Aug 20, 2010 at 3:15 PM

I am trying to simulate multi-touch by calling SendMessage(WM_GESTURE, ...), but having problems getting it to work.

I see there is a GetGestureInfo() function for converting the HGESTUREINFO to PGESTUREINFO, but there does not seem to be a SetGestureInfo() to do the reverse conversion.

I read somewhere that it is possible to this using a function from Multi-Touch Vista but having trouble finding the code. I did a search for WM_GESTURE and cannot find any hits.

Does anyone know how I can do this?




Aug 20, 2010 at 6:57 PM

Multi-Touch Vista does not generate any windows messages. It works as a multitouch driver that sends low level touch information to windows. Windows then generates all messages it needs from this information. Generating windows messages yourself is not a good idea.