THIS PAGE IS A WORK IN PROGRESS ... Please make edits to this page to improve it!
Dollar Gesture Event (event.dgesture.*)
Defined in [SDL_events.h](https://github.com/libsdl-org/SDL/blob/SDL2/include/SDL_events.h), but apps should _only_ `#include "SDL.h"`!
typedef struct SDL_DollarGestureEvent
{/**< ::SDL_DOLLARGESTURE or ::SDL_DOLLARRECORD */
Uint32 type; /**< In milliseconds, populated using SDL_GetTicks() */
Uint32 timestamp; /**< The touch device id */
SDL_TouchID touchId;
SDL_GestureID gestureId;
Uint32 numFingers;float error;
float x; /**< Normalized center of gesture */
float y; /**< Normalized center of gesture */
} SDL_DollarGestureEvent;
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 |
CategoryAPI, CategoryAPIStruct, CategoryStruct, CategoryEvents, CategoryDraft