DRAFT |
SDL_TouchButtonEvent
A structure that contains button touch event information.
Contents
Data Fields
Uint32 |
type |
SDL_TOUCHBUTTONDOWN or SDL_TOUCHBUTTONUP |
Uint32 |
windowID |
the window with mouse focus, if any |
SDL_TouchID |
touchId |
the touch device index |
Uint8 |
state |
the current button state |
Uint8 |
button |
the button changing state |
Code Examples
You can add your code example here
Remarks
SDL_TouchButtonEvent is a member of the SDL_Event union and is used when an event of type SDL_TOUCHBUTTONDOWN or SDL_TOUCHBUTTONUP is reported. You would access it through the event's tbutton field.
Related Enumerations
Related Structures