numHatsJoystick()

Returns the number of joystick hats.

Syntax:
variable = numHatsJoystick( index )

Example: