Gesture Core API (Compact 7)
3/12/2014
The gesture core provides an API for applications and gesture recognizers to use. The API is documented in Gesture Reference.
The following table describes the functions for applications. The header for these functions is Winuser.h.
Function | Description |
---|---|
Enables one or more touch gestures for a window or application process. |
|
Disables one or more touch gestures for a window or application process. |
|
Returns the list of gestures that a specified window or process supports. |
|
Provides information about a gesture event. |
|
Provides additional information about a gesture event from an OEM gesture recognizer. |
QueryGestures returns the set of gestures that are enabled for a specific window or process. You can use this function so that your application can disable some or all gestures and then enable the gestures later.
When your application receives a WM_GESTURE message, use the GetGestureInfo function to get information about the gesture, and then process the gesture accordingly.
The following table describes the gesture core functions for gesture recognizers. The header for these functions is Touchgesture.h.
Function | Description |
---|---|
Registers a gesture, or queries the ID of a registered gesture. |
|
Posts a gesture event. |
|
Begins a gesture recognizer session. |
|
Ends a gesture recognizer session. |
The recognizers call RegisterGesture to register gesture types with the register core. The recognizers report a recognized gesture by calling Gesture, which results in GWES sending WM_GESTURE messages to the appropriate windows.