/* Get the number of hats on a joystick  */
int SDL_JoystickNumHats(SDL_Joystick *joystick)
/* Get the number of hats on a joystick  */
int SDL_JoystickNumHats(SDL_Joystick *joystick)
{
	if ( ! ValidJoystick(&joystick) ) {
		return(-1);
	}
	return(joystick->nhats);
}