ArcBasicDocs

JoyType

Type of joystick connected.

JoyType ( [port] )

Parameters

port (optional)
which controller, counting from 0 for the first one connected.

Description

Tells you whether a joystick or gamepad is connected: 2 if one is, 0 if not.

See also