Controller:getAxis

Get the current state of an axis on the Controller. Axis values are from 0 to 1.

value = Controller:getAxis(axis)

Arguments

NameTypeDescription
axisControllerAxisThe axis to query.

Returns

NameTypeDescription
valuenumberThe current state of the axis.

See also