JoyAxis#

Category: Input

Back to System Functions


Signature

JoyAxis#(joy As Integer, axis As Integer)

Returns

Double

Description

Returns the current value of a controller axis.

Stick axes return values in the range -1.0 through 1.0. Trigger axes return values in the range 0.0 through 1.0.

The axis argument should be one of the values listed on Controller Constants.

Example

Dim moveX As Double

moveX = JoyAxis#(0, JOY_AXIS_LEFT_X)