Color legend method
An action driven by a pair of axes, for walking, aiming or looking around.
A class, in the namespace BorrowedTorch.InputBinding.Types.Actions. It derives from BaseAction, and has its Name, Description and Representation. Only a TwoAxesInput can be bound to it. RegisterTwoAxesAction 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
TwoAxesAction() →
TwoAxesAction(string name, Action<Vector2, int> action) · An action that calls the callback with the Vector2 value, of System.Numerics, 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<Vector2, int> |
The callback. May be null: the action then does nothing. |