Class UpdateReceiver
- Namespace
- OmegaEngine.Input
- Assembly
- OmegaEngine.dll
Calls a callback delegate whenever any kind of input is received.
public class UpdateReceiver : IInputReceiver
- Inheritance
-
UpdateReceiver
- Implements
- Inherited Members
- Extension Methods
Constructors
UpdateReceiver(Action)
Creates a new update receiver.
public UpdateReceiver(Action update)
Parameters
update
ActionThe 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 accumulate, bool done)
Parameters
area
RectangleThe selected area in pixels. The bottom-right corner is always the last point selected by the user, therefore the box may be inverted.
accumulate
booltrue
when the user wants the new selection to be added to the old one.done
boolTrue when the user has finished his selection (e.g. released the mouse).
Click(MouseEventArgs, bool)
Called when the user clicked something (not dragged!).
public void Click(MouseEventArgs e, bool accumulate)
Parameters
e
MouseEventArgsThe original event arguments from the click.
accumulate
booltrue
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
MouseEventArgsThe 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
PointThe point the user is hovering over in pixels.
PerspectiveChange(Point, int, int)
Called when the user changes the view perspective.
public void PerspectiveChange(Point pan, int rotation, int zoom)