Class ScanMapBase
ScanMapBase abstract class.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Cosmos.System
Assembly: Cosmos.System2.dll
Syntax
public abstract class ScanMapBase
Constructors
| Improve this Doc View SourceScanMapBase()
Create new instance of the ScanMapBase class.
Declaration
protected ScanMapBase()
Fields
| Improve this Doc View Source_keys
Keys list.
Declaration
protected List<KeyMapping> _keys
Field Value
Type | Description |
---|---|
System.Collections.Generic.List<KeyMapping> |
Methods
| Improve this Doc View SourceConvertScanCode(Byte, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean)
Convert scan code to KeyEvent.
Declaration
public KeyEvent ConvertScanCode(byte scan2, bool ctrl, bool shift, bool alt, bool num, bool caps, bool scroll)
Parameters
Type | Name | Description |
---|---|---|
System.Byte | scan2 | Scaned key. |
System.Boolean | ctrl | Ctrl pressed. |
System.Boolean | shift | Shift pressed. |
System.Boolean | alt | Alt pressed. |
System.Boolean | num | Num pressed. |
System.Boolean | caps | Caps pressed. |
System.Boolean | scroll | Scroll pressed. |
Returns
Type | Description |
---|---|
KeyEvent | KeyEvent value. |
InitKeys()
Init keys list.
Declaration
protected abstract void InitKeys()
ScanCodeMatchesKey(Byte, ConsoleKeyEx)
Check if scan code matches key.
Declaration
public bool ScanCodeMatchesKey(byte ScanCode, ConsoleKeyEx Key)
Parameters
Type | Name | Description |
---|---|---|
System.Byte | ScanCode | Scan code. |
ConsoleKeyEx | Key | Key. |
Returns
Type | Description |
---|---|
System.Boolean | bool value. |