My Project
Public Attributes | List of all members
SDL_JoyButtonEvent Struct Reference

Joystick button event structure (event.jbutton.*) More...

#include <SDL_events.h>

Public Attributes

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

Detailed Description

Joystick button event structure (event.jbutton.*)

Member Data Documentation

◆ button

Uint8 SDL_JoyButtonEvent::button

The joystick button index

◆ state

Uint8 SDL_JoyButtonEvent::state

::SDL_PRESSED or ::SDL_RELEASED

◆ timestamp

Uint32 SDL_JoyButtonEvent::timestamp

In milliseconds, populated using SDL_GetTicks()

◆ type

Uint32 SDL_JoyButtonEvent::type

◆ which

SDL_JoystickID SDL_JoyButtonEvent::which

The joystick instance id


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