Class KeyMapping
Represents a physical to virtual key mapping.
Inheritance
Inherited Members
Namespace: Cosmos.System
Assembly: Cosmos.System2.dll
Syntax
public class KeyMapping
Constructors
| Improve this Doc View SourceKeyMapping(Byte, ConsoleKeyEx)
Declaration
public KeyMapping(byte scanCode, ConsoleKeyEx key)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Byte | scanCode | |
| ConsoleKeyEx | key |
KeyMapping(Byte, Char, ConsoleKeyEx)
Declaration
public KeyMapping(byte scanCode, char n, ConsoleKeyEx key)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Byte | scanCode | |
| System.Char | n | The character to use for all of the text character fields. |
| ConsoleKeyEx | key |
KeyMapping(Byte, Char, ConsoleKeyEx, ConsoleKeyEx)
Declaration
public KeyMapping(byte scanCode, char numLock, ConsoleKeyEx key, ConsoleKeyEx numKey)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Byte | scanCode | |
| System.Char | numLock | |
| ConsoleKeyEx | key | |
| ConsoleKeyEx | numKey |
KeyMapping(Byte, Char, Char, Char, Char, Char, Char, ConsoleKeyEx)
Declaration
public KeyMapping(byte scanCode, char normal, char shift, char numLock, char capsLock, char shiftCapsLock, char shiftNumLock, ConsoleKeyEx key)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Byte | scanCode | |
| System.Char | normal | |
| System.Char | shift | |
| System.Char | numLock | |
| System.Char | capsLock | |
| System.Char | shiftCapsLock | |
| System.Char | shiftNumLock | |
| ConsoleKeyEx | key |
KeyMapping(Byte, Char, Char, Char, Char, Char, Char, ConsoleKeyEx, ConsoleKeyEx)
Declaration
public KeyMapping(byte scanCode, char normal, char shift, char numLock, char capsLock, char shiftCapsLock, char shiftNumLock, ConsoleKeyEx key, ConsoleKeyEx numKey)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Byte | scanCode | |
| System.Char | normal | |
| System.Char | shift | |
| System.Char | numLock | |
| System.Char | capsLock | |
| System.Char | shiftCapsLock | |
| System.Char | shiftNumLock | |
| ConsoleKeyEx | key | |
| ConsoleKeyEx | numKey |
KeyMapping(Byte, Char, Char, Char, Char, Char, Char, Char, ConsoleKeyEx)
Declaration
public KeyMapping(byte scanCode, char normal, char shift, char num, char capsLock, char shiftCapsLock, char shiftNumLock, char ctrlAlt, ConsoleKeyEx key)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Byte | scanCode | |
| System.Char | normal | |
| System.Char | shift | |
| System.Char | num | |
| System.Char | capsLock | |
| System.Char | shiftCapsLock | |
| System.Char | shiftNumLock | |
| System.Char | ctrlAlt | |
| ConsoleKeyEx | key |
KeyMapping(Byte, Char, Char, Char, Char, Char, Char, Char, ConsoleKeyEx, ConsoleKeyEx)
Declaration
public KeyMapping(byte scanCode, char normal, char shift, char numLock, char capsLock, char shiftCapsLock, char shiftNumLock, char ctrlAlt, ConsoleKeyEx key, ConsoleKeyEx numKey)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Byte | scanCode | |
| System.Char | normal | |
| System.Char | shift | |
| System.Char | numLock | |
| System.Char | capsLock | |
| System.Char | shiftCapsLock | |
| System.Char | shiftNumLock | |
| System.Char | ctrlAlt | |
| ConsoleKeyEx | key | |
| ConsoleKeyEx | numKey |
KeyMapping(Byte, Char, Char, Char, Char, Char, Char, Char, Char, ConsoleKeyEx)
Declaration
public KeyMapping(byte scanCode, char normal, char shift, char numLock, char capsLock, char shiftCapsLock, char shiftNumLock, char ctrlAlt, char ctrlAltShift, ConsoleKeyEx aKey)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Byte | scanCode | |
| System.Char | normal | |
| System.Char | shift | |
| System.Char | numLock | |
| System.Char | capsLock | |
| System.Char | shiftCapsLock | |
| System.Char | shiftNumLock | |
| System.Char | ctrlAlt | |
| System.Char | ctrlAltShift | |
| ConsoleKeyEx | aKey |
KeyMapping(Byte, Char, Char, Char, Char, Char, Char, Char, Char, ConsoleKeyEx, ConsoleKeyEx)
Declaration
public KeyMapping(byte scanCode, char normal, char shift, char numLock, char capsLock, char shiftCapsLock, char shiftNumLock, char ctrlAlt, char ctrlAltShift, ConsoleKeyEx key, ConsoleKeyEx numKey)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Byte | scanCode | |
| System.Char | normal | |
| System.Char | shift | |
| System.Char | numLock | |
| System.Char | capsLock | |
| System.Char | shiftCapsLock | |
| System.Char | shiftNumLock | |
| System.Char | ctrlAlt | |
| System.Char | ctrlAltShift | |
| ConsoleKeyEx | key | |
| ConsoleKeyEx | numKey |
KeyMapping(Byte, Char, Char, Char, Char, Char, Char, Char, Char, Char, Char, ConsoleKeyEx)
Declaration
public KeyMapping(byte scanCode, char normal, char shift, char numLock, char capsLock, char shiftCapsLock, char shiftNumLock, char ctrlAlt, char ctrlAltShift, char ctrl, char shiftCtrl, ConsoleKeyEx key)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Byte | scanCode | |
| System.Char | normal | |
| System.Char | shift | |
| System.Char | numLock | |
| System.Char | capsLock | |
| System.Char | shiftCapsLock | |
| System.Char | shiftNumLock | |
| System.Char | ctrlAlt | |
| System.Char | ctrlAltShift | |
| System.Char | ctrl | |
| System.Char | shiftCtrl | |
| ConsoleKeyEx | key |
KeyMapping(Byte, Char, Char, Char, Char, Char, Char, Char, Char, Char, Char, ConsoleKeyEx, ConsoleKeyEx)
Initializes a new instance of the KeyMapping class.
Declaration
public KeyMapping(byte scanCode, char normal, char shift, char num, char caps, char shiftCapsLock, char shiftNumLock, char ctrlAlt, char ctrlAltShift, char ctrl, char shiftCtrl, ConsoleKeyEx key, ConsoleKeyEx numKey)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Byte | scanCode | The physical scan code of the key. |
| System.Char | normal | The text character value of the key with no modifiers being active. |
| System.Char | shift | The text character value of the key with the Shift modifier being active. |
| System.Char | num | The text character value of the key with the Num Lock modifier being active. |
| System.Char | caps | The text character value of the key with the Caps Lock modifier being active. |
| System.Char | shiftCapsLock | The text character value of the key with the Shift and Caps Lock modifiers being active. |
| System.Char | shiftNumLock | The text character value of the key with the Shift and Num Lock modifiers being active |
| System.Char | ctrlAlt | The text character value of the key with the Control and Alt modifiers being active. |
| System.Char | ctrlAltShift | The text character value of the key with the Control, Alt, and Shift modifiers being active |
| System.Char | ctrl | The text character value of the key with the Control modifier being active. |
| System.Char | shiftCtrl | The text character value of the key with the Shift and Control modifiers being active. |
| ConsoleKeyEx | key | The virtual key that the physical key-press maps to. |
| ConsoleKeyEx | numKey | The virtual key that the physical key-press maps to when the Num Lock modifier is active.. |
Fields
| Improve this Doc View SourceCapsLock
The text character value of the key with the Caps Lock key modifier being active.
Declaration
public char CapsLock
Field Value
| Type | Description |
|---|---|
| System.Char |
Control
The text character value of the key with the Control (Ctrl) key modifier being active.
Declaration
public char Control
Field Value
| Type | Description |
|---|---|
| System.Char |
ControlAlt
The text character value of the key with both the Control and Alt key modifiers being active.
Declaration
public char ControlAlt
Field Value
| Type | Description |
|---|---|
| System.Char |
ControlAltShift
The text character value of the key with both the Control, Alt, and Shift key modifiers being active.
Declaration
public char ControlAltShift
Field Value
| Type | Description |
|---|---|
| System.Char |
ControlShift
The text character value of the key with both the Control and Shift key modifiers being active.
Declaration
public char ControlShift
Field Value
| Type | Description |
|---|---|
| System.Char |
Key
The virtual key that the physical key-press maps to.
Declaration
public ConsoleKeyEx Key
Field Value
| Type | Description |
|---|---|
| ConsoleKeyEx |
NumLock
The text character value of the key with the Num Lock key modifier being active.
Declaration
public char NumLock
Field Value
| Type | Description |
|---|---|
| System.Char |
NumLockKey
The virtual key that the physical key-press maps to when the Num Lock modifier is active.
Declaration
public ConsoleKeyEx NumLockKey
Field Value
| Type | Description |
|---|---|
| ConsoleKeyEx |
ScanCode
The physical scan-code that the mapping refers to.
Declaration
public byte ScanCode
Field Value
| Type | Description |
|---|---|
| System.Byte |
Shift
The text character value of the key with the Shift key modifier being active.
Declaration
public char Shift
Field Value
| Type | Description |
|---|---|
| System.Char |
ShiftCapsLock
The text character value of the key with both the Caps Lock and Num Lock key modifiers being active.
Declaration
public char ShiftCapsLock
Field Value
| Type | Description |
|---|---|
| System.Char |
ShiftNumLock
The text character value of the key with both the Shift and Num Lock key modifiers being active.
Declaration
public char ShiftNumLock
Field Value
| Type | Description |
|---|---|
| System.Char |
Value
The text character value of the key with no modifiers active.
Declaration
public char Value
Field Value
| Type | Description |
|---|---|
| System.Char |