Color legend method
An action driven by a single axis, for a throttle, a zoom or a knob.
A class, in the namespace BorrowedTorch.InputBinding.Types.Actions. It derives from BaseAction, and has its Name, Description and Representation. Only a OneAxisInput can be bound to it. RegisterOneAxisAction makes and registers one in a call; this class is for actions built ahead, registered with RegisterAction. The actions page shows it in context, with code.
Names are colored by what they are: a method.
Methods
OneAxisAction() →
OneAxisAction(string name, Action<float, int> action) · An action that calls the callback with the float value and the player number of each bound input passed to Update. Throws ArgumentNullException for a null name and ArgumentException for an empty one. Set Description and Representation in an initializer.
| Parameter | Type | Description |
|---|---|---|
name |
string |
The action’s name, unique in the binder it is registered in. |
action |
Action<float, int> |
The callback. May be null: the action then does nothing. |