Class ConsoleKeyMapping
Helper class to handle the scan code and virtual key from a ConsoleKey.
public static class ConsoleKeyMapping
- Inheritance
-
ConsoleKeyMapping
- Inherited Members
Methods
- DecodeVKPacketToKConsoleKeyInfo(ConsoleKeyInfo)
Decode a ConsoleKeyInfo that is using Packet.
- EncodeKeyCharForVKPacket(ConsoleKeyInfo)
Encode the KeyChar with the Key if the first a byte length, otherwise only the KeyChar is considered and searched on the database.
- GetConsoleKeyInfoFromKeyCode(KeyCode)
Gets the ConsoleKeyInfo from the provided KeyCode.
- GetKeyboardLayoutName()
Retrieves the name of the active input locale identifier (formerly called the keyboard layout) for the calling thread.
- GetModifiers(bool, bool, bool)
Gets ConsoleModifiers from bool modifiers.
- GetScanCodeFromConsoleKeyInfo(ConsoleKeyInfo)
Get the scan code from a ConsoleKeyInfo.
- MapToConsoleModifiers(KeyCode)
Map existing KeyCode modifiers to ConsoleModifiers.
- MapVKtoChar(VK)
Translates the specified virtual-key code and keyboard state to the corresponding Unicode character or characters using the Win32 API MapVirtualKey.