Class InputReceiverBase
- Namespace
- OmegaEngine.Input
- Assembly
- OmegaEngine.dll
Base class to simplify implementing IInputReceiver
public abstract class InputReceiverBase : IInputReceiver
- Inheritance
-
InputReceiverBase
- Implements
- Derived
- Inherited Members
- Extension Methods
Methods
AreaSelection(Rectangle, bool, bool)
Called when the user is selecting an area on the screen.
public virtual void AreaSelection(Rectangle area, bool accumulate, bool done)
Parameters
areaRectangleThe selected area in pixels. The bottom-right corner is always the last point selected by the user, therefore the box may be inverted.
accumulatebooltruewhen the user wants the new selection to be added to the old one.doneboolTrue when the user has finished his selection (e.g. released the mouse).
Click(MouseEventArgs, bool)
Called when the user clicked something (not dragged!).
public virtual void Click(MouseEventArgs e, bool accumulate)
Parameters
eMouseEventArgsThe original event arguments from the click.
accumulatebooltruewhen the user wants the action to have an accumulative effect (usually for selections).
DoubleClick(MouseEventArgs)
Called when the user double-clicked something.
public virtual void DoubleClick(MouseEventArgs e)
Parameters
eMouseEventArgsThe original event arguments from the click.
Hover(Point)
Called when the user is hovering above a point on the screen.
public virtual void Hover(Point target)
Parameters
targetPointThe point the user is hovering over in pixels.
Navigate(DoubleVector3, DoubleVector3)
Called when the user changes the view perspective.
public abstract void Navigate(DoubleVector3 translation, DoubleVector3 rotation)
Parameters
translationDoubleVector3Movement in screen units. X = pan right, Y = pan upwards, Z = zoom into screen
rotationDoubleVector3Rotation in degrees. X = yaw clockwise, Y = pitch clockwise, Z = roll clockwise