Documentation
Tutorials
Gesture Documentation
Related
Documentation
Tutorials
Gesture Documentation
Related
GestureWorks by default creates a basic set of gestures to use. Below are the descriptions of gestures including gesture properties.
Type: drag
Id: ndrag
drag_dx - delta x
drag_dy - delta y
The 'ndrag' gesture can be activated by any number of touchpoints. When a touchdown is recognized on a touch object the position of the touch point is tracked. This change in the position of the touch point is mapped directly to the position of the touch object.
Type: rotate
Id: nrotate
rotate_dtheta - rotate change
The 'nrotate' gesture is designed to provide object rotation functionality using any number of touch points.
Type: scale
Id: nscale
scale_dsx - factor of change of scale x
scale_dsy - factor of change of scale y
The 'nscale' gesture is designed to provide object scaling or zoom functionality using any number of touch points.
This gesture can be activated by any number of touch points between 2 and 10.
Type: scroll
Id: nscroll
scroll_dx - change of scroll x
scroll_dy - change of scroll y
The 'nscroll' gesture can be activated by any number of touchpoints. When a touchdown is recognized on a touch object, the average velocity of the touch points are tracked. If velocity of the cluster is above the translation threshold a scroll event is continuously dispatched with inertia.
Type: swipe
Id: nswipe
swipe_dx - change of x
swipe_dy - change of y
The 'n-swipe' gesture can be activated by any number of touchpoints. When a touchdown is recognized on a touch object, the velocity and acceleration of the touch points are tracked. If acceleration of the cluster is below the acceleration threshold a swipe event is dispatched.
Type: flick
Id: nflick
flick_dx - change of x
flick_dy - change of y
The 'n-flick' gesture can be activated by any number of touchpoints. When a touchdown is recognized on a touch object, the velocity and acceleration of the touch points are tracked. If acceleration of the cluster is above the acceleration threshold a flick event is dispatched.
Type: tap
Id: ntap
tap_x - x of tap
tap_y - y of tap
tap_n - number of tap points
Type: double_tap
Id: ndouble_tap
double_tap_x - x of tap
double_tap_y - y of tap
double_tap_n - number of tap points
Type: hold
Id: nhold
hold_x - x of hold
hold_y - y of hold
hold_n - number of hold points