/*
* call-seq:
* hats -> Integer
*
* Returns the number of hats featured on the Joystick. A hat is a switch
* which can be pushed in one of several directions, or centered. See also
* #hat_state().
*/
VALUE rbgm_joystick_numhats( VALUE self )
{
SDL_Joystick *joy;
Data_Get_Struct(self,SDL_Joystick,joy);
return INT2FIX(SDL_JoystickNumHats(joy));
}