<vizjoy:joystick>.getHat

Returns hat value

 

<vizjoy:joystick>.getHat()

 

Remarks

If the hat switch is centered the return value will be -1. Otherwise the return value represents the angle of the hat switch, where 0 is forward, 90 is right, 180 is backward, and 270 is left.

Return Value

Hat angle