Table of Contents

Interface IInputReceiver

Namespace
OmegaEngine.Input
Assembly
OmegaEngine.dll

An object that receives input procesed into navigational commands from an InputProvider.

public interface IInputReceiver
Extension Methods

Methods

AreaSelection(Rectangle, bool, bool)

Called when the user is selecting an area on the screen.

void AreaSelection(Rectangle area, bool accumulate, bool done)

Parameters

area Rectangle

The selected area in pixels. The bottom-right corner is always the last point selected by the user, therefore the box may be inverted.

accumulate bool

true when the user wants the new selection to be added to the old one.

done bool

True when the user has finished his selection (e.g. released the mouse).

Click(MouseEventArgs, bool)

Called when the user clicked something (not dragged!).

void Click(MouseEventArgs e, bool accumulate)

Parameters

e MouseEventArgs

The original event arguments from the click.

accumulate bool

true when the user wants the action to have an accumulative effect (usually for selections).

DoubleClick(MouseEventArgs)

Called when the user double-clicked something.

void DoubleClick(MouseEventArgs e)

Parameters

e MouseEventArgs

The original event arguments from the click.

Hover(Point)

Called when the user is hovering above a point on the screen.

void Hover(Point target)

Parameters

target Point

The point the user is hovering over in pixels.

PerspectiveChange(Point, int, int)

Called when the user changes the view perspective.

void PerspectiveChange(Point pan, int rotation, int zoom)

Parameters

pan Point

Horizontal XY-panning in pixels.

rotation int

Horizontal rotation in pixels.

zoom int

Vertical zooming in pixels. Greater than 0 to zoom in; less than 0 to zoom out.