JoyHat
Joystick hat direction in degrees (-1 if centred).
JoyHat ( [port] )
Parameters
- port (optional)
- which controller, counting from 0.
Description
Gives back the direction pressed on the controller's direction pad as an angle: 0 up, 90 right, 180 down and 270 left, with the diagonals in between, or -1 when nothing is pressed.
