GETJOYSTICKTYPE |
Top Previous Next |
Syntax INT = GETJOYSTICKTYPE(opt device as INT) Description Returns the type of a joystick device Parameters device - Optional device number. Default is 0 or the first joystick attached to the system Return value One of the following constants: @JOYTYPE_UNKNOWN @JOYTYPE_TRADITIONAL @JOYTYPE_FLIGHTSTICK @JOYTYPE_GAMEPAD @JOYTYPE_RUDDER @JOYTYPE_WHEEL @JOYTYPE_HEADTRACKER Remarks A screen must be open or DirectInput initialized manually before using this function. Example usage IF GETJOYSTICKTYPE(0) = @JOYTYPE_GAMEPAD |