Joystick button event structure (event.jbutton.*)
Defined in SDL_events.h, but apps should use #include <SDL3/SDL.h>
typedef struct SDL_JoyButtonEvent
{/**< ::SDL_EVENT_JOYSTICK_BUTTON_DOWN or ::SDL_EVENT_JOYSTICK_BUTTON_UP */
SDL_EventType type;
Uint32 reserved;/**< In nanoseconds, populated using SDL_GetTicksNS() */
Uint64 timestamp; /**< The joystick instance id */
SDL_JoystickID which; /**< The joystick button index */
Uint8 button; /**< ::SDL_PRESSED or ::SDL_RELEASED */
Uint8 state;
Uint8 padding1;
Uint8 padding2; } SDL_JoyButtonEvent;
This struct is available since SDL 3.0.0.
CategoryAPI, CategoryAPIStruct