SDL_JoyButtonEvent

Joystick button event structure (event.jbutton.*)

\since This struct is available since SDL 3.2.0.

Members

Variables

button
Uint8 button;

< The joystick button index

down
bool down;

< true if the button is pressed

padding1
Uint8 padding1;
Undocumented in source.
padding2
Uint8 padding2;
Undocumented in source.
reserved
Uint32 reserved;
Undocumented in source.
timestamp
Uint64 timestamp;

< In nanoseconds, populated using SDL_GetTicksNS()

type
SDL_EventType type;

< SDL_EVENT_JOYSTICK_BUTTON_DOWN or SDL_EVENT_JOYSTICK_BUTTON_UP

which
SDL_JoystickID which;

< The joystick instance id

Meta