SDL 3.0
|
#include <SDL_events.h>
Data Fields | |
SDL_EventType | type |
Uint32 | reserved |
Uint64 | timestamp |
SDL_JoystickID | which |
Uint8 | button |
bool | down |
Uint8 | padding1 |
Uint8 | padding2 |
Gamepad button event structure (event.gbutton.*)
Definition at line 596 of file SDL_events.h.
Uint8 SDL_GamepadButtonEvent::button |
The gamepad button (SDL_GamepadButton)
Definition at line 602 of file SDL_events.h.
bool SDL_GamepadButtonEvent::down |
true if the button is pressed
Definition at line 603 of file SDL_events.h.
Uint8 SDL_GamepadButtonEvent::padding1 |
Definition at line 604 of file SDL_events.h.
Uint8 SDL_GamepadButtonEvent::padding2 |
Definition at line 605 of file SDL_events.h.
Uint32 SDL_GamepadButtonEvent::reserved |
Definition at line 599 of file SDL_events.h.
Uint64 SDL_GamepadButtonEvent::timestamp |
In nanoseconds, populated using SDL_GetTicksNS()
Definition at line 600 of file SDL_events.h.
SDL_EventType SDL_GamepadButtonEvent::type |
SDL_EVENT_GAMEPAD_BUTTON_DOWN or SDL_EVENT_GAMEPAD_BUTTON_UP
Definition at line 598 of file SDL_events.h.
SDL_JoystickID SDL_GamepadButtonEvent::which |
The joystick instance id
Definition at line 601 of file SDL_events.h.