SDL
2.0
|
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 |
Game controller button event structure (event.cbutton.*)
Definition at line 373 of file SDL_events.h.
Uint8 SDL_ControllerButtonEvent::button |
The controller button (SDL_GameControllerButton)
Definition at line 378 of file SDL_events.h.
Referenced by loop(), and SDLTest_PrintEvent().
Uint8 SDL_ControllerButtonEvent::padding1 |
Definition at line 380 of file SDL_events.h.
Uint8 SDL_ControllerButtonEvent::padding2 |
Definition at line 381 of file SDL_events.h.
Uint8 SDL_ControllerButtonEvent::state |
Uint32 SDL_ControllerButtonEvent::timestamp |
In milliseconds, populated using SDL_GetTicks()
Definition at line 376 of file SDL_events.h.
Uint32 SDL_ControllerButtonEvent::type |
SDL_CONTROLLERBUTTONDOWN or SDL_CONTROLLERBUTTONUP
Definition at line 375 of file SDL_events.h.
SDL_JoystickID SDL_ControllerButtonEvent::which |
The joystick instance id
Definition at line 377 of file SDL_events.h.
Referenced by SDLTest_PrintEvent().