Skip to content

InputRouterState ​

Namespace: Hex1b.Input

Assembly: Hex1b.dll

Holds the chord state for an input router instance. Each Hex1bApp has its own state, ensuring test isolation and multi-app support.

csharp
public sealed class InputRouterState

Inheritance ​

Object → InputRouterState

Properties ​

IsInChord ​

Gets whether we're currently mid-chord.

Returns: Boolean

csharp
public bool IsInChord { get; }

Methods ​

Reset() ​

Resets the chord state.

csharp
public void Reset()

Events ​

OnChordStateChanged ​

Event raised when chord state changes (for UI feedback).

Returns: Action

csharp
public event Action? OnChordStateChanged

Released under the MIT License.