GETJOYSTICKAXISCOUNT

Top  Previous  Next

Syntax

INT = GETJOYSTICKAXISCOUNT(OPT device as INT)

Description

Returns the number of axes available on a joystick device.

Parameters

device - Optional device number. Default is 0 or the first joystick attached to the system

Return value

The number of axes.

Remarks

A screen must be open or DirectInput initialized manually before using this function.

Example usage

AxisCount = GETJOYSTICKAXISCOUNT(1)