GetControllerAxis
This function is used to retrieve the current input value for controller buttons that have analog input, like touchpads and triggers.
Syntax
- Vec2 GetControllerAxis(number index, number button)
Parameters
- index: The index of the controller, either Left or Right.
- button: The button to retrieve the axis value for. This can be TouchpadAxis, TriggerAxis, or GripAxis.
Returns
Returns the current axis value for the specified button.