THIS PAGE IS A WORK IN PROGRESS ... Please make edits to this page to improve it!
Multiple Finger Gesture Event (event.mgesture.*)
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_MultiGestureEvent
{/**< ::SDL_MULTIGESTURE */
Uint32 type; /**< In milliseconds, populated using SDL_GetTicks() */
Uint32 timestamp; /**< The touch device id */
SDL_TouchID touchId; float dTheta;
float dDist;
float x;
float y;
Uint16 numFingers;
Uint16 padding; } SDL_MultiGestureEvent;
Uint32 |
type |
SDL_MULTIGESTURE |
Uint32 |
timestamp |
timestamp of the event |
SDL_TouchID |
touchId |
the touch device id |
float |
dTheta |
the amount that the fingers rotated during this motion, in radians |
float |
dDist |
the amount that the fingers pinched during this motion |
float |
x |
the normalized center of gesture |
float |
y |
the normalized center of gesture |
Uint16 |
numFingers |
the number of fingers used in the gesture |
CategoryAPI, CategoryAPIStruct, CategoryStruct, CategoryEvents, CategoryDraft