Gets the value of an axis based on the given index. The index must be valid within the range of axes supported by this Gamepad. The return value will be a float between 0 and 1.
name | type | description |
---|---|---|
index | number |
The index of the axes to get the value for. |
The value of the axis, between 0 and 1.