Skip to content

Mojo input joystick getaxis

mojo:mojo.input.Joystick.GetAxis

Method GetAxis:Float( axis:Int )#

Gets joystick axis value and returns a result in the range -1 to 1.

The axis parameter must be in the range 0 (inclusive) to NumAxes (exclusive).

The returned value is in the range -1.0 to +1.0.