Class StickDeadzoneProcessor
Processes a Vector2 to apply deadzoning according to the magnitude of the vector (rather than just clamping individual axes). Normalizes to the min/max range.
Inherited Members
Namespace: UnityEngine.InputSystem.Processors
Syntax
public class StickDeadzoneProcessor : InputProcessor<Vector2>
Fields
max
Declaration
public float max
Field Value
Type | Description |
---|---|
System.Single |
min
Value at which the lower bound deadzone starts.
Declaration
public float min
Field Value
Type | Description |
---|---|
System.Single |
Remarks
Values in the input at or below min will get dropped and values will be scaled to the range between min and max.
Methods
Process(Vector2, InputControl<Vector2>)
Declaration
public override Vector2 Process(Vector2 value, InputControl<Vector2> control = null)
Parameters
Type | Name | Description |
---|---|---|
Vector2 | value | |
InputControl<Vector2> | control |
Returns
Type | Description |
---|---|
Vector2 |
Overrides
UnityEngine.InputSystem.InputProcessor<Vector2>.Process(Vector2, UnityEngine.InputSystem.InputControl<Vector2>)