DRAFT |
SDL_TouchFingerEvent
A structure that contains finger touch event information.
Contents
Data Fields
Uint32 |
type |
SDL_FINGERMOTION, SDL_FINGERDOWN, or SDL_FINGERUP |
Uint32 |
windowID |
the window with mouse focus, if any |
SDL_TouchID |
touchId |
the touch device id index |
SDL_FingerID |
fingerId |
|
Uint8 |
state |
the current button state |
Uint16 |
x |
the x-axis location of the touch event |
Uint16 |
y |
the y-axis location of the touch event |
Uint16 |
dx |
the distance moved in the x-axis |
Uint16 |
dy |
the distance moved in the y-axis |
Uint16 |
pressure |
the quantity of pressure applied |
Note that touchID is described as "the touch device index" in all 3 other similar functions.
Code Examples
You can add your code example here
Remarks
SDL_TouchFingerEvent is a member of the SDL_Event union and is used when an event of type SDL_FINGERMOTION, SDL_FINGERDOWN, or SDL_FINGERUP is reported. You would access it through the event's tfinger field.
Related Enumerations
Related Structures