SDL_GamepadButtonEvent - Gamepad button event structure (event.gbutton.*)
Contents
Availability
This struct is available since SDL 3.2.0.
Simple Directmedia Layer SDL 3.2.20 SDL_GamepadButtonEvent(3type)
Name
SDL_GamepadButtonEvent - Gamepad button event structure (event.gbutton.*)
Synopsis
#include<SDL3/SDL_events.h>typedefstructSDL_GamepadButtonEvent{SDL_EventTypetype;/**<SDL_EVENT_GAMEPAD_BUTTON_DOWNorSDL_EVENT_GAMEPAD_BUTTON_UP*/Uint32reserved;Uint64timestamp;/**<Innanoseconds,populatedusingSDL_GetTicksNS()*/SDL_JoystickIDwhich;/**<Thejoystickinstanceid*/Uint8button;/**<Thegamepadbutton(SDL_GamepadButton)*/booldown;/**<trueifthebuttonispressed*/Uint8padding1;Uint8padding2;}SDL_GamepadButtonEvent;