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
[Preserve]
public class StickDeadzoneProcessor : InputProcessor<Vector2>
Fields
max
Declaration
public float max
Field Value
| Type | Description | 
|---|---|
| Single | 
min
Value at which the lower bound deadzone starts.
Declaration
public float min
Field Value
| Type | Description | 
|---|---|
| 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)
Declaration
public override Vector2 Process(Vector2 value, InputControl control = null)
Parameters
| Type | Name | Description | 
|---|---|---|
| Vector2 | value | |
| InputControl | control | 
Returns
| Type | Description | 
|---|---|
| Vector2 | 
Overrides
UnityEngine.InputSystem.InputProcessor<UnityEngine.Vector2>.Process(UnityEngine.Vector2, UnityEngine.InputSystem.InputControl)