SDL 2.0
|
#include <SDL_events.h>
Data Fields | |
Uint32 | type |
Uint32 | timestamp |
SDL_JoystickID | which |
Uint8 | hat |
Uint8 | value |
Uint8 | padding1 |
Uint8 | padding2 |
Joystick hat position change event structure (event.jhat.*)
Definition at line 382 of file SDL_events.h.
Uint8 SDL_JoyHatEvent::hat |
The joystick hat index
Definition at line 387 of file SDL_events.h.
Uint8 SDL_JoyHatEvent::padding1 |
Definition at line 395 of file SDL_events.h.
Uint8 SDL_JoyHatEvent::padding2 |
Definition at line 396 of file SDL_events.h.
Uint32 SDL_JoyHatEvent::timestamp |
In milliseconds, populated using SDL_GetTicks()
Definition at line 385 of file SDL_events.h.
Uint32 SDL_JoyHatEvent::type |
SDL_JOYHATMOTION
Definition at line 384 of file SDL_events.h.
Uint8 SDL_JoyHatEvent::value |
The hat position value.
Note that zero means the POV is centered.
Definition at line 388 of file SDL_events.h.
SDL_JoystickID SDL_JoyHatEvent::which |
The joystick instance id
Definition at line 386 of file SDL_events.h.