Processors.AxisDeadzone
Static Method in Processors
Declaration
public static float AxisDeadzone(float input, float min = 0.125F, float max = 0.925F)Description
An axis deadzone scales the input such that any value with an absolute value smaller than the min is 0, and any value with an absolute value larger than the max is 1 or -1.
Parameters
| input | The input value to scale. |
| min | The lower deadzone threshold. |
| max | The upper deadzone threshold. |
Returns
| float | The scaled input value. |
Overload
Declaration
public static double AxisDeadzone(double input, double min = 0.125, double max = 0.925)Description
An axis deadzone scales the input such that any value with an absolute value smaller than the min is 0, and any value with an absolute value larger than the max is 1 or -1.
Parameters
| input | The input value to scale. |
| min | The lower deadzone threshold. |
| max | The upper deadzone threshold. |
Returns
| double | The scaled input value. |