Class KeyboardManager
Keyboard manager class. Used to manage keyboard.
Inheritance
System.Object
KeyboardManager
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 static class KeyboardManager
Properties
| Improve this Doc View SourceAltPressed
Get and set Alt pressed.
Declaration
public static bool AltPressed { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
CapsLock
Get and set CapsLock.
Declaration
public static bool CapsLock { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
ControlPressed
Get and set Ctrl pressed.
Declaration
public static bool ControlPressed { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
KeyAvailable
Get if queued keys exists.
Declaration
public static bool KeyAvailable { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
NumLock
Get and set NumLock.
Declaration
public static bool NumLock { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
ScrollLock
Get and set ScrollLock.
Declaration
public static bool ScrollLock { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
ShiftPressed
Get and set Shift pressed.
Declaration
public static bool ShiftPressed { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
| Improve this Doc View SourceGetKey(Byte, out KeyEvent)
Get key pressed.
Declaration
public static bool GetKey(byte aScancode, out KeyEvent keyInfo)
Parameters
Type | Name | Description |
---|---|---|
System.Byte | aScancode | A scan code. |
KeyEvent | keyInfo | KeyEvent output. |
Returns
Type | Description |
---|---|
System.Boolean | bool value. |
GetKeyLayout()
Get key layout.
Declaration
public static ScanMapBase GetKeyLayout()
Returns
Type | Description |
---|---|
ScanMapBase | ScanMapBase value. |
ReadKey()
Read key.
Declaration
public static KeyEvent ReadKey()
Returns
Type | Description |
---|---|
KeyEvent | KeyEvent value. |
SetKeyLayout(ScanMapBase)
Set key layout.
Declaration
public static void SetKeyLayout(ScanMapBase aScanMap)
Parameters
Type | Name | Description |
---|---|---|
ScanMapBase | aScanMap | A scan map |
TryReadKey(out KeyEvent)
Try read key.
Declaration
public static bool TryReadKey(out KeyEvent oKey)
Parameters
Type | Name | Description |
---|---|---|
KeyEvent | oKey | Output KeyEvent. |
Returns
Type | Description |
---|---|
System.Boolean | bool value. |