|
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 551 of file SDL_events.h.
| Uint8 SDL_JoyHatEvent::hat |
The joystick hat index
Definition at line 557 of file SDL_events.h.
| Uint8 SDL_JoyHatEvent::padding1 |
Definition at line 565 of file SDL_events.h.
| Uint8 SDL_JoyHatEvent::padding2 |
Definition at line 566 of file SDL_events.h.
| Uint32 SDL_JoyHatEvent::reserved |
Definition at line 554 of file SDL_events.h.
| Uint64 SDL_JoyHatEvent::timestamp |
In nanoseconds, populated using SDL_GetTicksNS()
Definition at line 555 of file SDL_events.h.
| SDL_EventType SDL_JoyHatEvent::type |
SDL_EVENT_JOYSTICK_HAT_MOTION
Definition at line 553 of file SDL_events.h.
| Uint8 SDL_JoyHatEvent::value |
The hat position value.
Note that zero means the POV is centered.
Definition at line 558 of file SDL_events.h.
| SDL_JoystickID SDL_JoyHatEvent::which |
The joystick instance id
Definition at line 556 of file SDL_events.h.