JoystickAxisY()

Syntax

Result = JoystickAxisY(#Joystick)
Description
Returns the #Joystick Y 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: Top movement
0: no movement on the Y axis
1: Bottom movement

ExamineJoystick() must be called before this function is used, in order to update the actual joystick state.

Supported OS

All

<- JoystickAxisX() - Joystick Index - JoystickButton() ->