Class Global
Cosmos global class. Used to init the console, screen and debugger and get/set keyboard keys.
Inheritance
System.Object
Global
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 Global
Fields
| Improve this Doc View SourceConsole
Console instance.
Declaration
public static Console Console
Field Value
Type | Description |
---|---|
Console |
mDebugger
System ring debugger instance, with the tag "Global".
Declaration
public static readonly Debugger mDebugger
Field Value
Type | Description |
---|---|
Debugger |
mFileSystemDebugger
System ring debugger instance, with the tag "FileSystem".
Declaration
public static readonly Debugger mFileSystemDebugger
Field Value
Type | Description |
---|---|
Debugger |
Properties
| Improve this Doc View SourceCapsLock
Get and set keyboard CapsLock value.
Declaration
public static bool CapsLock { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
NumLock
Get and set keyboard NumLock value.
Declaration
public static bool NumLock { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
ScrollLock
Get and set keyboard ScrollLock value.
Declaration
public static bool ScrollLock { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
| Improve this Doc View SourceChangeKeyLayout(ScanMapBase)
Change keyboard layout. Initially set to US_Standard.
Currently available:
- US_Standard.
- FR_Standard.
- DE_Standard.
- TR_StandardQ.
Declaration
public static void ChangeKeyLayout(ScanMapBase scanMap)
Parameters
Type | Name | Description |
---|---|---|
ScanMapBase | scanMap | A key mapping. |
Init(TextScreenBase, Boolean, Boolean, Boolean, Boolean)
Init console, screen and keyboard.
Declaration
public static void Init(TextScreenBase textScreen, bool InitScroolWheel = true, bool InitPS2 = true, bool InitNetwork = true, bool IDEInit = true)
Parameters
Type | Name | Description |
---|---|---|
TextScreenBase | textScreen | A screen device. |
System.Boolean | InitScroolWheel | |
System.Boolean | InitPS2 | |
System.Boolean | InitNetwork | |
System.Boolean | IDEInit |