ArcBasicDocs

JoyXDir

Joystick X direction (-1, 0 or 1).

JoyXDir ( [port] )

Parameters

port (optional)
which controller, counting from 0.

Description

Gives back which way the left stick is pushed across: -1 for left, 1 for right, or 0 if it's in the middle or only pushed a little.

See also