SDL_GamepadButtonEvent

Gamepad button event structure (event.gbutton.*)

\since This struct is available since SDL 3.2.0.

Members

Variables

button
Uint8 button;

< The gamepad button (SDL_GamepadButton)

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_GAMEPAD_BUTTON_DOWN or SDL_EVENT_GAMEPAD_BUTTON_UP

which
SDL_JoystickID which;

< The joystick instance id

Meta