SDL_!JoystickGetHat?
NAME SYNOPSIS DESCRIPTION RETURN VALUE SEE ALSO
SDL_!JoystickGetHat?- Get the current state of a joystick hat
#include
Uint8 SDL_!JoystickGetHat?(SDL_Joystick *joystick, int hat);
SDL_!JoystickGetHat? returns the current state of the given hat on the given joystick.
The current state is returned as a Uint8 which is defined as an OR'd combination of one or more of the following
SDL_HAT_CENTERED
SDL_HAT_UP
SDL_HAT_RIGHT
SDL_HAT_DOWN
SDL_HAT_LEFT
SDL_HAT_RIGHTUP
SDL_HAT_RIGHTDOWN
SDL_HAT_LEFTUP
SDL_HAT_LEFTDOWN
SDL_!JoystickNumHats?
One page links to SDL_JoystickGetHat(3):