|
My Project
|
Game controller button event structure (event.cbutton.*) More...
#include <SDL_events.h>
Public Attributes | |
| Uint32 | type |
| Uint32 | timestamp |
| SDL_JoystickID | which |
| Uint8 | button |
| Uint8 | state |
| Uint8 | padding1 |
| Uint8 | padding2 |
Game controller button event structure (event.cbutton.*)
| Uint8 SDL_ControllerButtonEvent::button |
The controller button (SDL_GameControllerButton)
| Uint8 SDL_ControllerButtonEvent::state |
::SDL_PRESSED or ::SDL_RELEASED
| Uint32 SDL_ControllerButtonEvent::timestamp |
In milliseconds, populated using SDL_GetTicks()
| Uint32 SDL_ControllerButtonEvent::type |
| SDL_JoystickID SDL_ControllerButtonEvent::which |
The joystick instance id