SDL_JoystickNumHats (3) - Linux Manuals
SDL_JoystickNumHats: Get the number of joystick hats
NAME
SDL_JoystickNumHats - Get the number of joystick hatsSYNOPSIS
#include "SDL.h"
int SDL_JoystickNumHats(SDL_Joystick *joystick);
DESCRIPTION
Return the number of hats available from a previously opened SDL_Joystick.
RETURN VALUE
SEE ALSO
SDL_JoystickGetHat, SDL_JoystickOpen