KeyMapper
Namespace: Hex1b.Input
Assembly: Hex1b.dll
Maps between System.ConsoleKey and Hex1bKey. This centralizes the dependency on System.Console types.
csharp
public static class KeyMapperInheritance
Object → KeyMapper
Methods
ToHex1bKey(ConsoleKey)
Converts a ConsoleKey to a Hex1bKey.
Parameters:
consoleKey(ConsoleKey):
Returns: Hex1bKey
csharp
public static Hex1bKey ToHex1bKey(ConsoleKey consoleKey)ToHex1bKeyEvent(ConsoleKey, char, bool, bool, bool)
Creates a Hex1bKeyEvent from console key info.
Parameters:
key(ConsoleKey):keyChar(Char):shift(Boolean):alt(Boolean):control(Boolean):
Returns: Hex1bKeyEvent
csharp
public static Hex1bKeyEvent ToHex1bKeyEvent(ConsoleKey key, char keyChar, bool shift, bool alt, bool control)ToHex1bModifiers(bool, bool, bool)
Converts ConsoleModifiers to Hex1bModifiers.
Parameters:
Returns: Hex1bModifiers
csharp
public static Hex1bModifiers ToHex1bModifiers(bool shift, bool alt, bool control)