Home
Products
Community
Manuals
Contact
Login or Signup

BlitzPlus Docs -> 2D - Category -> Input -> JoyHat

JoyHat ( [port] )

Parameters:

port (optional) - an integer value representing the port to be checked for joystick data

Description:

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'.

Example:

While Not KeyHit(1)
Print JoyHat()
Wend
End 

Comments

None.

BlitzPlus Manual Forum

Blitz3D Equivalent Command