OmegaEngine API  1.0.3
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events
Public Member Functions | List of all members
OmegaEngine.Input.UpdateReceiver Class Reference

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

Inheritance diagram for OmegaEngine.Input.UpdateReceiver:
OmegaEngine.Input.IInputReceiver

Public Member Functions

 UpdateReceiver (Action update)
 Creates a new update receiver. More...
 
void PerspectiveChange (Point pan, int rotation, int zoom)
 Called when the user changes the view perspective.
Parameters
panHorizontal XY-panning in pixels.
rotationHorizontal rotation in pixels.
zoomVertical zooming in pixels. Greater than 0 to zoom in; less than 0 to zoom out.

 
void Hover (Point target)
 Called when the user is hovering above a point on the screen.
Parameters
targetThe point the user is hovering over in pixels.

 
void AreaSelection (Rectangle area, bool accumulate, bool done)
 Called when the user is selecting an area on the screen.
Parameters
areaThe selected area in pixels. The bottom-right corner is always the last point selected by the user, therefore the box may be inverted.
accumulatetrue when the user wants the new selection to be added to the old one.
doneTrue when the user has finished his selection (e.g. released the mouse).

 
void Click (MouseEventArgs e, bool accumulate)
 Called when the user clicked something (not dragged!).
Parameters
eThe original event arguments from the click.
accumulatetrue when the user wants the action to have an accumulative effect (usually for selections).

 
void DoubleClick (MouseEventArgs e)
 Called when the user double-clicked something.
Parameters
eThe original event arguments from the click.

 

Detailed Description

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

Constructor & Destructor Documentation

OmegaEngine.Input.UpdateReceiver.UpdateReceiver ( Action  update)
inline

Creates a new update receiver.

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

The documentation for this class was generated from the following file: