Wiki Page Content

Differences between revisions 14 and 15
Revision 14 as of 2014-07-29 20:29:27
Size: 1630
Comment: Updated link to README.
Revision 15 as of 2015-03-21 21:23:48
Size: 1724
Comment: Added SDL_DOLLARRECORD to possible types and remarks.
Deletions are marked like this. Additions are marked like this.
Line 11: Line 11:
||Uint32||'''type'''||SDL_DOLLARGESTURE|| ||Uint32||'''type'''||SDL_DOLLARGESTURE or SDL_DOLLARRECORD||
Line 33: Line 33:
For SDL_DOLLARRECORD only '''touchId''' and '''gestureId''' are valid.

DRAFT

SDL_DollarGestureEvent

A structure that contains complex gesture event information.

Data Fields

Uint32

type

SDL_DOLLARGESTURE or SDL_DOLLARRECORD

Uint32

timestamp

timestamp of the event

SDL_TouchID

touchId

the touch device id

SDL_GestureID

gestureId

the unique id of the closest gesture to the performed stroke

Uint32

numFingers

the number of fingers used to draw the stroke

float

error

the difference between the gesture template and the actual performed gesture (lower error is a better match)

float

x

the normalized center of gesture

float

y

the normalized center of gesture

Note that SDL_GestureID is not defined in this header.

Worth changing touchId and gestureId to touchID and gestureID for consistency?

Code Examples

You can add your code example here

Remarks

SDL_DollarGestureEvent is a member of the SDL_Event union and is used when an event of type SDL_DOLLARGESTURE is reported. You would access it through the event's dgesture field.

x and y are in range 0 to 1.

For SDL_DOLLARRECORD only touchId and gestureId are valid.

For more information see: README-gesture.md


CategoryStruct, CategoryEvents

None: SDL_DollarGestureEvent (last edited 2015-07-18 19:24:49 by PhilippWiesemann)

(Page Info.)
Feedback
Please include your contact information if you'd like to receive a reply.
Submit