getHatJoystick()
Returns the current state of a joystick hat.
Syntax:
variable
= getHatJoystick(
index
,
hat
)
Example: