JoystickAxisX()

Syntax

Result = JoystickAxisX(#Joystick)
Description
Returns the #Joystick X axis state. The first #Joystick number starts at 0. The number of available joysticks is returned by the InitJoystick() function.

'Result' will be one of the following values:

-1: Left movement
0: no movement on the X axis
1: Right movement

ExamineJoystick() must be called before this function is used, in order to reflect the actual state of the joysticks:

Supported OS

All

<- InitJoystick() - Joystick Index - JoystickAxisY() ->