Ubuntu Manpages

SDL_JoystickNumHats

Get the number of joystick hats

#include "SDL.h"

int SDL_JoystickNumHats(SDL_Joystick *joystick);

Return the number of hats available from a previously opened SDL_Joystick.

Number of hats.

SDL_JoystickGetHat, SDL_JoystickOpen