Table of Contents

Default Gestures

GestureWorks by default creates a basic set of gestures to use. Below are the descriptions of gestures including gesture properties.


Drag

Type: drag
Id: ndrag

Properties

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.


Rotate

Type: rotate
Id: nrotate

Properties

rotate_dtheta - rotate change

The 'nrotate' gesture is designed to provide object rotation functionality using any number of touch points.


Scale

Type: scale
Id: nscale

Properties

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.


Scroll

Type: scroll
Id: nscroll

Properties

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.


Swipe

Type: swipe
Id: nswipe

Properties

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.


Flick

Type: flick
Id: nflick

Properties

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.


Tap

Type: tap
Id: ntap

Properties

tap_x - x of tap
tap_y - y of tap
tap_n - number of tap points


Double Tap

Type: double_tap
Id: ndouble_tap

Properties

double_tap_x - x of tap
double_tap_y - y of tap
double_tap_n - number of tap points


Hold

Type: hold
Id: nhold

Properties

hold_x - x of hold
hold_y - y of hold
hold_n - number of hold points