My Project
Loading...
Searching...
No Matches
SDL_ControllerButtonEvent Struct Reference

Game controller button event structure (event.cbutton.*) More...

#include <SDL_events.h>

Data Fields

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

Detailed Description

Game controller button event structure (event.cbutton.*)

Field Documentation

◆ button

Uint8 button

The controller button (SDL_GameControllerButton)

◆ state

Uint8 state

SDL_PRESSED or SDL_RELEASED

◆ timestamp

Uint32 timestamp

In milliseconds, populated using SDL_GetTicks()

◆ type

◆ which

The joystick instance id


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