InputRouter
Namespace: Hex1b.Input
Assembly: Hex1b.dll
Routes input through the node tree to the focused node using layered chord tries.
csharp
public static class InputRouterInheritance
Object → InputRouter
Properties
LastPathDebug
Debug: The last path that was built during input routing.
Returns: String
csharp
public static string? LastPathDebug { get; set; }LastRouteDebug
Debug: The key that was last routed and whether a match was found.
Returns: String
csharp
public static string? LastRouteDebug { get; set; }Methods
GetGlobalBindings(Hex1bNode, Hex1bNode?)
Gets all currently registered global bindings from the tree. Useful for checking conflicts during accelerator assignment.
Parameters:
root(Hex1bNode): The root node of the tree.excludeNode(Hex1bNode): Optional node to exclude from collection (to avoid self-conflict).
Returns: IReadOnlyList<InputBinding>
List of global bindings.
csharp
public static IReadOnlyList<InputBinding> GetGlobalBindings(Hex1bNode root, Hex1bNode? excludeNode = null)IsGlobalBindingRegistered(Hex1bNode, Hex1bKey, Hex1bModifiers, Hex1bNode?)
Checks if a global binding with the given key step already exists.
Parameters:
root(Hex1bNode):key(Hex1bKey):modifiers(Hex1bModifiers):excludeNode(Hex1bNode):
Returns: Boolean
csharp
public static bool IsGlobalBindingRegistered(Hex1bNode root, Hex1bKey key, Hex1bModifiers modifiers, Hex1bNode? excludeNode = null)