Interface AxisState.IInputAxisProvider
This is an interface to override default querying of Unity's legacy Input system. If a befaviour implementing this interface is attached to a CinemachineCamera that requires input, that interface will be polled for input instead of the standard Input system.
Namespace: Unity.Cinemachine
Assembly: Unity.Cinemachine.dll
Syntax
[Obsolete("IInputAxisProvider is deprecated. Use InputAxis and InputAxisController instead")]
public interface AxisState.IInputAxisProvider
Methods
GetAxisValue(int)
Get the value of the input axis
Declaration
float GetAxisValue(int axis)
Parameters
Type | Name | Description |
---|---|---|
int | axis | Which axis to query: 0, 1, or 2. These represent, respectively, the X, Y, and Z axes |
Returns
Type | Description |
---|---|
float | The input value of the axis queried |