|
SDL 3.0
|
Joystick button event structure (event.jbutton.*) More...
#include <SDL_events.h>
Data Fields | |
| Uint32 | type |
| Uint64 | timestamp |
| SDL_JoystickID | which |
| Uint8 | button |
| Uint8 | state |
| Uint8 | padding1 |
| Uint8 | padding2 |
Joystick button event structure (event.jbutton.*)
Definition at line 387 of file SDL_events.h.
| Uint8 SDL_JoyButtonEvent::button |
The joystick button index
Definition at line 392 of file SDL_events.h.
| Uint8 SDL_JoyButtonEvent::padding1 |
Definition at line 394 of file SDL_events.h.
| Uint8 SDL_JoyButtonEvent::padding2 |
Definition at line 395 of file SDL_events.h.
| Uint8 SDL_JoyButtonEvent::state |
Definition at line 393 of file SDL_events.h.
| Uint64 SDL_JoyButtonEvent::timestamp |
In nanoseconds, populated using SDL_GetTicksNS()
Definition at line 390 of file SDL_events.h.
| Uint32 SDL_JoyButtonEvent::type |
SDL_EVENT_JOYSTICK_BUTTON_DOWN or SDL_EVENT_JOYSTICK_BUTTON_UP
Definition at line 389 of file SDL_events.h.
| SDL_JoystickID SDL_JoyButtonEvent::which |
The joystick instance id
Definition at line 391 of file SDL_events.h.