OmegaEngine API
1.0.3
|
Processes events from an input device into higher-level navigational commands. More...
Public Member Functions | |
void | AddReceiver (IInputReceiver receiver) |
Adds an object that wishes to be notified about navigational commands that are triggered by input. More... | |
void | RemoveReceiver (IInputReceiver receiver) |
Removes an object that no longer wishes to be notified about navigational commands. More... | |
void | Dispose () |
Public Attributes | |
bool | HasReceivers => _receivers.Count != 0 |
Indicates whether this handler currently has IInputReceiver attached to it. More... | |
Protected Member Functions | |
virtual void | OnPerspectiveChange (Point pan, int rotation, int zoom) |
Raises all registered IInputReceiver.PerspectiveChanges. More... | |
virtual void | OnAreaSelection (Rectangle area, bool accumulate, bool done=false) |
Raises all registered IInputReceiver.AreaSelections. More... | |
virtual void | OnHover (Point target) |
Raises all registered IInputReceiver.Hovers. More... | |
virtual void | OnClick (MouseEventArgs e, bool accumulate) |
Raises all registered IInputReceiver.Clicks. More... | |
virtual void | OnDoubleClick (MouseEventArgs e) |
Raises all registered IInputReceiver.DoubleClicks. More... | |
abstract void | Dispose (bool disposing) |
To be called by IDisposable.Dispose and the object destructor. More... | |
Processes events from an input device into higher-level navigational commands.
|
inline |
Adds an object that wishes to be notified about navigational commands that are triggered by input.
receiver | The object to receive the commands. |
|
protectedpure virtual |
To be called by IDisposable.Dispose and the object destructor.
disposing | true if called manually and not by the garbage collector. |
Implemented in OmegaEngine.Input.MouseInputProvider, OmegaEngine.Input.KeyboardInputProvider, and OmegaEngine.Input.TouchInputProvider.
|
inlineprotectedvirtual |
Raises all registered IInputReceiver.AreaSelections.
area | The selected area in pixels. |
accumulate | true when the user wants the new selection to be added to the old one. |
done | True when the user has finished his selection (e.g. released the mouse). |
|
inlineprotectedvirtual |
Raises all registered IInputReceiver.Clicks.
e | The original event arguments from the click. |
accumulate | true when the user wants the action to have an accumulative effect (usually for selections). |
|
inlineprotectedvirtual |
Raises all registered IInputReceiver.DoubleClicks.
e | The original event arguments from the click. |
|
inlineprotectedvirtual |
Raises all registered IInputReceiver.Hovers.
target | The point the user is hovering over in pixels. |
|
inlineprotectedvirtual |
Raises all registered IInputReceiver.PerspectiveChanges.
pan | Horizontal XY-panning in pixels. |
rotation | Horizontal rotation in pixels. |
zoom | Vertical zooming in pixels. Greater than 0 to zoom in; less than 0 to zoom out. |
|
inline |
Removes an object that no longer wishes to be notified about navigational commands.
receiver | The object to no longer receive the commands. |
bool OmegaEngine.Input.InputProvider.HasReceivers => _receivers.Count != 0 |
Indicates whether this handler currently has IInputReceiver attached to it.