SDL
2.0
|
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 |
Joystick button event structure (event.jbutton.*)
Definition at line 331 of file SDL_events.h.
Uint8 SDL_JoyButtonEvent::button |
The joystick button index
Definition at line 336 of file SDL_events.h.
Referenced by loop(), main(), SDL_GameControllerEventWatcher(), SDLTest_PrintEvent(), and WatchJoystick().
Uint8 SDL_JoyButtonEvent::padding1 |
Definition at line 338 of file SDL_events.h.
Uint8 SDL_JoyButtonEvent::padding2 |
Definition at line 339 of file SDL_events.h.
Uint8 SDL_JoyButtonEvent::state |
Definition at line 337 of file SDL_events.h.
Referenced by SDL_GameControllerEventWatcher().
Uint32 SDL_JoyButtonEvent::timestamp |
In milliseconds, populated using SDL_GetTicks()
Definition at line 334 of file SDL_events.h.
Uint32 SDL_JoyButtonEvent::type |
SDL_JOYBUTTONDOWN or SDL_JOYBUTTONUP
Definition at line 333 of file SDL_events.h.
SDL_JoystickID SDL_JoyButtonEvent::which |
The joystick instance id
Definition at line 335 of file SDL_events.h.
Referenced by loop(), SDL_GameControllerEventWatcher(), SDLTest_PrintEvent(), and WatchJoystick().