SDL 3.0
SDL_GamepadButtonEvent Struct Reference

#include <SDL_events.h>

Data Fields

Uint32 type
 
Uint64 timestamp
 
SDL_JoystickID which
 
Uint8 button
 
Uint8 state
 
Uint8 padding1
 
Uint8 padding2
 

Detailed Description

Gamepad button event structure (event.gbutton.*)

Definition at line 441 of file SDL_events.h.

Field Documentation

◆ button

Uint8 SDL_GamepadButtonEvent::button

The gamepad button (SDL_GamepadButton)

Definition at line 446 of file SDL_events.h.

◆ padding1

Uint8 SDL_GamepadButtonEvent::padding1

Definition at line 448 of file SDL_events.h.

◆ padding2

Uint8 SDL_GamepadButtonEvent::padding2

Definition at line 449 of file SDL_events.h.

◆ state

Uint8 SDL_GamepadButtonEvent::state

SDL_PRESSED or SDL_RELEASED

Definition at line 447 of file SDL_events.h.

◆ timestamp

Uint64 SDL_GamepadButtonEvent::timestamp

In nanoseconds, populated using SDL_GetTicksNS()

Definition at line 444 of file SDL_events.h.

◆ type

Uint32 SDL_GamepadButtonEvent::type

◆ which

SDL_JoystickID SDL_GamepadButtonEvent::which

The joystick instance id

Definition at line 445 of file SDL_events.h.


The documentation for this struct was generated from the following file: