InputActionMap Class
A named collection of InputAction instances. Typically one map per game context (e.g., "Player", "UI", "Vehicle"). Set Enabled to false to suppress all actions in this map without unregistering them.
public sealed class InputActionMap
Inheritance System.Object → InputActionMap
Remarks¶
Thread-safe: all mutable state is guarded by Brine2D.Input.InputActionMap._lock.
| Properties | |
|---|---|
| Enabled | Gets or sets whether this action map is enabled. When disabled, all actions return false/zero for query methods. Default is true. |
| this[string] | Gets an action by name. Throws if not found. |
| Methods | |
|---|---|
| IsDown(string, IInputContext) | Returns true if any binding of the named action is currently held. Returns false if the map is disabled. |
| IsPressed(string, IInputContext) | Returns true if any binding of the named action was pressed this frame. Returns false if the map is disabled. |
| IsReleased(string, IInputContext) | Returns true if any binding of the named action was released this frame. Returns false if the map is disabled. |
| ReadValue(string, IInputContext) | Returns the analog value of the named action. Returns 0 if the map is disabled. |
| ReadVector2(string, string, IInputContext) | Reads two named actions as a System.Numerics.Vector2 (X from xActionName, Y from yActionName). Returns System.Numerics.Vector2.Zero if the map is disabled. |