API ReferenceworldinputgetAxis()On this pagegetAxis() world.input.getAxis(gamepadIdx) Description Returns the value of the axis of the gamepadIdx. Parameters PropertyTypeDescriptiongamepadIdx (optional)numberGamepad index. Returns number[] Example world.input.getAxis()