GETJOYSTICKCOUNT

Top  Previous  Next

Syntax

INT = GETJOYSTICKCOUNT

Description

Returns the number of joystick devices attached to the system

Parameters

None

Return value

The number of joystick devices or 0 if none are attached

Remarks

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

Example usage

FOR x = 1 TO GETJOYSTICKCOUNT
    PRINT GETJOYSTICKNAME(x-1)
NEXT x