SDL 2.0
SDL_JoyButtonEvent Struct Reference

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

#include <SDL_events.h>

Data Fields

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

Detailed Description

Joystick button event structure (event.jbutton.*)

Definition at line 382 of file SDL_events.h.

Field Documentation

◆ button

Uint8 SDL_JoyButtonEvent::button

The joystick button index

Definition at line 387 of file SDL_events.h.

◆ padding1

Uint8 SDL_JoyButtonEvent::padding1

Definition at line 389 of file SDL_events.h.

◆ padding2

Uint8 SDL_JoyButtonEvent::padding2

Definition at line 390 of file SDL_events.h.

◆ state

Uint8 SDL_JoyButtonEvent::state

SDL_PRESSED or SDL_RELEASED

Definition at line 388 of file SDL_events.h.

◆ timestamp

Uint32 SDL_JoyButtonEvent::timestamp

In milliseconds, populated using SDL_GetTicks()

Definition at line 385 of file SDL_events.h.

◆ type

Uint32 SDL_JoyButtonEvent::type

SDL_JOYBUTTONDOWN or SDL_JOYBUTTONUP

Definition at line 384 of file SDL_events.h.

◆ which

SDL_JoystickID SDL_JoyButtonEvent::which

The joystick instance id

Definition at line 386 of file SDL_events.h.


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