JOYY

Top  Previous  Next

Syntax

INT = JOYY(opt device=0 as INT)

Description

Returns the current Y 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 Y 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: JOYX, JOYZ, SETJOYSTICKRANGE

Example usage

pos = JOYY