Built-in processors
The Input System package comes with a set of built-in Processors, which you can use with bindings, actions and controls.
| Processor name | Description | Operand type | Parameters |
|---|---|---|---|
Clamp |
Clamps input values to the [min..max] range. |
float |
|
Invert |
Inverts the values from a Control (that is, multiplies the values by −1). | float |
None |
InvertVector2 |
Inverts the values from a Control (that is, multiplies the values by −1). Inverts the x-axis of the vector if invertX is true, and the y-axis if invertY is true. |
Vector2 |
|
Invert Vector 3 |
Inverts the values from a Control (that is, multiplies the values by −1). Inverts the x-axis of the vector if invertX is true, the y-axis if invertY is true, and the z-axis if invertZ is true. |
Vector3 |
|
Normalize |
Normalizes input values in the range [min..max] to unsigned normalized form [0..1] if min is >= zero, and to signed normalized form [-1..1] if min < zero. |
float |
|
NormalizeVector2 |
Normalizes input vectors to be of unit length (1). This is the same as calling Vector2.normalized. |
Vector2 |
None |
NormalizeVector3 |
Normalizes input vectors to be of unit length (1). This is the same as calling Vector3.normalized. |
Vector3 |
None |
Scale |
Multiplies all input values by factor. |
float |
float factor |
ScaleVector2 |
Multiplies all input values by x along the x-axis and by y along the y-axis. |
Vector2 |
|
ScaleVector3 |
Multiplies all input values by x along the x-axis, by y along the y-axis, and by z along the z-axis. |
Vector3 |
|
AxisDeadzone |
Scales the values of a Control so that any value with an absolute value smaller than min is 0, and any value with an absolute value larger than max is 1 or −1.Many Controls don't have a precise resting point (that is, they don't always report exactly 0 when the Control is in the center). Using the min value on a deadzone Processor avoids unintentional input from such Controls. Also, some Controls don't consistently report their maximum values when moving the axis all the way. Using the max value on a deadzone Processor ensures that you always get the maximum value in such cases. |
float |
|
StickDeadzone |
Scales the values of a Vector2 Control, such as a stick, so that any input vector with a magnitude smaller than min results in (0,0), and any input vector with a magnitude greater than max is normalized to length 1.Many Controls don't have a precise resting point (that is, they don't always report exactly 0,0 when the Control is in the center). Using the min value on a deadzone Processor avoids unintentional input from such Controls. Also, some Controls don't consistently report their maximum values when moving the axis all the way. Using the max value on a deadzone Processor ensures that you always get the maximum value in such cases. |
Vector2 |
|