Extracted from Pike v8.0 release 164 as of 2018-07-18.
   

Method SDL.Joystick()->num_hats()


Method num_hats

int num_hats()

Returns

The number of hats available for this joystick.