Skip to content

MoveViewPortKeyboardHandler Class

Moves the view of an IScreenSurface with a set of specified keyboard keys.

C#
public class MoveViewPortKeyboardHandler : KeyboardConsoleComponent, IComponent

Inheritance objectKeyboardConsoleComponent

Implements IComponent

Creates this handler with the arrow keys.

C#
public MoveViewPortKeyboardHandler()

MoveViewPortKeyboardHandler(Keys, Keys, Keys, Keys)

Section titled “MoveViewPortKeyboardHandler(Keys, Keys, Keys, Keys)”

Creates this handler with the specified keys.

C#
public MoveViewPortKeyboardHandler(Keys left, Keys right, Keys up, Keys down)

left Keys
The key to move left.

right Keys
The key to move right.

up Keys
The key to move up.

down Keys
The key to move down.

The key to move left.

C#
public Keys Left { get; set; }

The key to move right.

C#
public Keys Right { get; set; }

The key to move up.

C#
public Keys Up { get; set; }

The key to move down.

C#
public Keys Down { get; set; }

Called when the component is added to a host.

C#
public override void OnAdded(IScreenObject console)

console IScreenObject

ProcessKeyboard(IScreenObject, Keyboard, out bool)

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

Called by a host when the keyboard is being processed.

C#
public override void ProcessKeyboard(IScreenObject consoleObject, Keyboard info, out bool handled)

consoleObject IScreenObject

info Keyboard

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