Table of Contents

Class ActionReceiver

Namespace
OmegaEngine.Input
Assembly
OmegaEngine.dll

Calls a callback delegate whenever any kind of input is received.

public class ActionReceiver : IInputReceiver
Inheritance
object
ActionReceiver
Implements

Constructors

ActionReceiver(Action)

Calls a callback delegate whenever any kind of input is received.

public ActionReceiver(Action update)

Parameters

update Action

The callback delegate to be called when any kind of input is received.

Methods

AreaSelection(Rectangle, bool, bool)

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

public void AreaSelection(Rectangle area, bool done, bool accumulate = false)

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.

done bool

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

accumulate bool

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

Click(MouseEventArgs, bool)

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

public void Click(MouseEventArgs e, bool accumulate = false)

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.

public 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.

public void Hover(Point target)

Parameters

target Point

The point the user is hovering over in pixels.

Navigate(DoubleVector3, DoubleVector3)

Called when the user changes the view perspective.

public void Navigate(DoubleVector3 translation = default, DoubleVector3 rotation = default)

Parameters

translation DoubleVector3

Movement in screen units. X = pan right, Y = pan up, Z = move forward

rotation DoubleVector3

Rotation in degrees. X = yaw right, Y = pitch up, Z = roll clockwise