#include <SDL_events.h>
Data Fields | |
Uint8 | type |
Uint8 | which |
Uint8 | hat |
Uint8 | value |
Uint8 hat |
The joystick hat index
Uint8 type |
SDL_JOYHATMOTION
Uint8 value |
The hat position value: SDL_HAT_LEFTUP SDL_HAT_UP SDL_HAT_RIGHTUP SDL_HAT_LEFT SDL_HAT_CENTERED SDL_HAT_RIGHT SDL_HAT_LEFTDOWN SDL_HAT_DOWN SDL_HAT_RIGHTDOWN Note that zero means the POV is centered.
Uint8 which |
The joystick device index