Using WEC2013, VS2013 and a PicoComA5 with a capacitive touch screen (EDT), how do I detect multi touch events? I would like to implement two-finger zoom in and out ...
Detecting multi-touch
-
-
With message WM_GESTURE you can detect Multi touch events.
case WM_GESTURE:
{
HGESTUREINFO hgi = reinterpert_cast<HGESTUREINFO>(lParam);
If (GID_SELECT == wParam)
{
GESTUREINFO gi;// Populate the GESTUREINFO structure with information about the gesture.
gi.cbSize = sizeof(GESTUREINFO);
if (GetGestureInfo(hgi, &gi))
{
// Call a function to process the Select gesture
ProcessSelect(*gi);
}
return 1;
}
// Fall through to DefWindowProc
break;
} -
Additionally, GID_BEGIN, GID_END, GID_SCROLL you can dedect the gesture Events.
WM_GESTURE (Compact 2013) : http://msdn.microsoft.com/en-us/library/ee499665.aspx
GESTUREINFO (Compact 2013) : http://msdn.microsoft.com/en-us/library/ee503892.aspx -
Thanks a lot. Will that work under WinCE7 as well? From the Microsoft docs, it seems it should ...