Class Global
Contains commonly used globals. Used to initialize the console, screen and debugger and get/set keyboard scan-maps.
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
The main global console instance.
Declaration
public static Console Console
Field Value
Type | Description |
---|---|
Console |
Debugger
The global system ring debugger instance, with the tag "Global".
Declaration
public static readonly Debugger Debugger
Field Value
Type | Description |
---|---|
Debugger |
Properties
| Improve this Doc View SourceCapsLock
Gets and sets the keyboards caps-lock state.
Declaration
public static bool CapsLock { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
NumLock
Gets and sets the keyboards num-lock state.
Declaration
public static bool NumLock { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
ScrollLock
Gets and sets the keyboards scroll-lock state.
Declaration
public static bool ScrollLock { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
| Improve this Doc View SourceInit(TextScreenBase, Boolean, Boolean, Boolean, Boolean)
Initializes the console, screen and keyboard.
Declaration
public static void Init(TextScreenBase textScreen, bool initScrollWheel = true, bool initPS2 = true, bool initNetwork = true, bool ideInit = true)
Parameters
Type | Name | Description |
---|---|---|
TextScreenBase | textScreen | A screen device. |
System.Boolean | initScrollWheel | |
System.Boolean | initPS2 | |
System.Boolean | initNetwork | |
System.Boolean | ideInit |