SDL 3.0
|
#include <SDL_events.h>
Data Fields | |
SDL_EventType | type |
Uint32 | reserved |
Uint64 | timestamp |
SDL_JoystickID | which |
Uint8 | button |
SDL_bool | down |
Uint8 | padding1 |
Uint8 | padding2 |
Joystick button event structure (event.jbutton.*)
Definition at line 531 of file SDL_events.h.
Uint8 SDL_JoyButtonEvent::button |
The joystick button index
Definition at line 537 of file SDL_events.h.
SDL_bool SDL_JoyButtonEvent::down |
SDL_TRUE if the button is pressed
Definition at line 538 of file SDL_events.h.
Uint8 SDL_JoyButtonEvent::padding1 |
Definition at line 539 of file SDL_events.h.
Uint8 SDL_JoyButtonEvent::padding2 |
Definition at line 540 of file SDL_events.h.
Uint32 SDL_JoyButtonEvent::reserved |
Definition at line 534 of file SDL_events.h.
Uint64 SDL_JoyButtonEvent::timestamp |
In nanoseconds, populated using SDL_GetTicksNS()
Definition at line 535 of file SDL_events.h.
SDL_EventType SDL_JoyButtonEvent::type |
SDL_EVENT_JOYSTICK_BUTTON_DOWN or SDL_EVENT_JOYSTICK_BUTTON_UP
Definition at line 533 of file SDL_events.h.
SDL_JoystickID SDL_JoyButtonEvent::which |
The joystick instance id
Definition at line 536 of file SDL_events.h.