SDL_JoystickGetHat (3) Linux Manual Page
SDL_JoystickGetHat – Get the current state of a joystick hat
Synopsis
#include "SDL.h"
Uint8 SDL_JoystickGetHat(SDL_Joystick *joystick, int hat);
Description
SDL_JoystickGetHat returns the current state of the given hat on the given joystick.
Return Value
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_CENTEREDSDL_HAT_UPSDL_HAT_RIGHTSDL_HAT_DOWNSDL_HAT_LEFTSDL_HAT_RIGHTUPSDL_HAT_RIGHTDOWNSDL_HAT_LEFTUPSDL_HAT_LEFTDOWN
See Also
SDL_JoystickNumHats
