Skip to content

KeyboardConsoleComponent Class

A base class that implements ProcessKeyboard(IScreenObject, Keyboard, out bool) of IComponent.

C#
public abstract class KeyboardConsoleComponent : IComponent

Inheritance object

Implements IComponent

C#
protected KeyboardConsoleComponent()

Indicates priority to other components.

C#
public uint SortOrder { get; set; }

ProcessKeyboard(IScreenObject, Keyboard, out bool)

Section titled “ProcessKeyboard(IScreenObject, Keyboard, out bool)”

Called by a host when the keyboard is being processed.

C#
public abstract void ProcessKeyboard(IScreenObject host, Keyboard keyboard, out bool handled)

host IScreenObject
The host calling the component.

keyboard Keyboard
The state of the keyboard.

handled bool
When set to true informs the host caller that we handled the mouse and to stop others from handling.

Called when the component is added to a host.

C#
public virtual void OnAdded(IScreenObject host)

host IScreenObject
The host that added the component.

Called when the component is removed from the host.

C#
public virtual void OnRemoved(IScreenObject host)

host IScreenObject
The host that removed the component.