SDL_JoyButtonEvent - Joystick button event structure (event.jbutton.*)
Contents
Availability
This struct is available since SDL 3.2.0.
Simple Directmedia Layer SDL 3.2.10 SDL_JoyButtonEvent(3type)
Header File
Defined in SDL3/SDL_events.h
Name
SDL_JoyButtonEvent - Joystick button event structure (event.jbutton.*)
Synopsis
#include"SDL3/SDL.h"typedefstructSDL_JoyButtonEvent{SDL_EventTypetype;/**<SDL_EVENT_JOYSTICK_BUTTON_DOWNorSDL_EVENT_JOYSTICK_BUTTON_UP*/Uint32reserved;Uint64timestamp;/**<Innanoseconds,populatedusingSDL_GetTicksNS()*/SDL_JoystickIDwhich;/**<Thejoystickinstanceid*/Uint8button;/**<Thejoystickbuttonindex*/booldown;/**<trueifthebuttonispressed*/Uint8padding1;Uint8padding2;}SDL_JoyButtonEvent;