port (optional) - an integer value representing the port to be checked for joystick data |
JoyHat returns the state of a joystick 'hat' or 'pov' (point-of-view) control.
If the returned value is -1, the hat is currently centred. Otherwise, the returned value gives the direction as an angle in the range 0 to 360 relative to 'up'. |
While Not KeyHit(1)
Print JoyHat() Wend End |