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

Processes keyboard events into higher-level navigational commands. More...

Inheritance diagram for OmegaEngine.Input.KeyboardInputProvider:
OmegaEngine.Input.InputProvider

Public Member Functions

 KeyboardInputProvider (Control control)
 Starts monitoring and processing keyboard events receieved by a specififc control. More...
 
- Public Member Functions inherited from OmegaEngine.Input.InputProvider
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 ()
 

Protected Member Functions

override void Dispose (bool disposing)
 To be called by IDisposable.Dispose and the object destructor.
Parameters
disposingtrue if called manually and not by the garbage collector.

 
- Protected Member Functions inherited from OmegaEngine.Input.InputProvider
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...
 

Additional Inherited Members

- Public Attributes inherited from OmegaEngine.Input.InputProvider
bool HasReceivers => _receivers.Count != 0
 Indicates whether this handler currently has IInputReceiver attached to it. More...
 

Detailed Description

Processes keyboard events into higher-level navigational commands.

Pressing the left and right arrow keys allows rotating.

Pressing the up and down arrow keys allows zooming.

Constructor & Destructor Documentation

OmegaEngine.Input.KeyboardInputProvider.KeyboardInputProvider ( Control  control)
inline

Starts monitoring and processing keyboard events receieved by a specififc control.

Parameters
controlThe control receiving the keyboard events.

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