Home
Products
Community
Manuals
Contact
Login or Signup

Blitz3D Docs -> 2D - Category -> Input -> JoyZ

JoyZ ([port])

Parameters:

port = number of joystick port to check (optional)

Description:

This command returns the value of the x-axis of the joystick. The range is -1 to 1 (Max to none). The value returned is a floating point number. See the example.
As with any joystick command, you MUST have a DirectX compatible joystick plugged in and properly configured within Windows for it to work. See your joystick documentation for more information.

Example:

; JoyZ() example

While Not KeyHit(1)
Cls
Text 0,0,"Joy Z Value: " + JoyZ()
Wend

Comments

mv333(Posted 1+ years ago)
Typo - returns the value of the Z-axis.


Blitz3D Manual Forum

BlitzPlus Equivalent Command