JOYZ |
Top Previous Next |
Syntax INT = JOYZ(opt device=0 as INT) Description Returns the current Z axis position of a joystick device. Parameters device - Optional device number. Default is 0 or the first joystick attached to the system. Return value The current position of the Z axis. Remarks A screen must be open or DirectInput initialized manually before using this function. The range of an axis is set by the SETJOYSTICKRANGE function. See Also: JOYY, JOYX, SETJOYSTICKRANGE Example usage pos = JOYZ |