|
Input System
v0.1
|
A processor that conditions input values. More...
Public Member Functions | |
| TValue | Process (TValue value, InputControl control) |
| Process the given value and return the result. More... | |
A processor that conditions input values.
InputControls can have stacks of processors assigned to them.
Note that processors CANNOT be stateful. If you need processing that requires keeping mutating state over time, use InputActions. All mutable state needs to be kept in the central state buffers.
However, processors can have configurable parameters. Every public field on a processor object can be set using "parameters" in JSON or by supplying parameters through the InputControlAttribute.processors field.
| TValue | Type of value to be processed. Only InputControls that use the same value type will be compatible with the processor. |
| TValue ISX.IInputProcessor< TValue >.Process | ( | TValue | value, |
| InputControl | control | ||
| ) |
Process the given value and return the result.
The implementation of this method must not be stateful.
| value | Input value to process. |
| control | The control the value is processed for. Note that value is not necessarily equal to InputControl<TValue>.value as other processors in the stack may have already altered the value. |