SDL 3.0
|
#include <SDL_events.h>
Data Fields | |
SDL_EventType | type |
Uint32 | reserved |
Uint64 | timestamp |
SDL_JoystickID | which |
Uint8 | hat |
Uint8 | value |
Uint8 | padding1 |
Uint8 | padding2 |
Joystick hat position change event structure (event.jhat.*)
Definition at line 508 of file SDL_events.h.
Uint8 SDL_JoyHatEvent::hat |
The joystick hat index
Definition at line 514 of file SDL_events.h.
Uint8 SDL_JoyHatEvent::padding1 |
Definition at line 522 of file SDL_events.h.
Uint8 SDL_JoyHatEvent::padding2 |
Definition at line 523 of file SDL_events.h.
Uint32 SDL_JoyHatEvent::reserved |
Definition at line 511 of file SDL_events.h.
Uint64 SDL_JoyHatEvent::timestamp |
In nanoseconds, populated using SDL_GetTicksNS()
Definition at line 512 of file SDL_events.h.
SDL_EventType SDL_JoyHatEvent::type |
SDL_EVENT_JOYSTICK_HAT_MOTION
Definition at line 510 of file SDL_events.h.
Uint8 SDL_JoyHatEvent::value |
The hat position value.
Note that zero means the POV is centered.
Definition at line 515 of file SDL_events.h.
SDL_JoystickID SDL_JoyHatEvent::which |
The joystick instance id
Definition at line 513 of file SDL_events.h.