Class MouseInputProvider
- Namespace
- OmegaEngine.Input
- Assembly
- OmegaEngine.dll
Processes mouse events into higher-level navigational commands.
public class MouseInputProvider : InputProvider, IDisposable
- Inheritance
-
MouseInputProvider
- Implements
- Inherited Members
- Extension Methods
Remarks
Dragging with the left mouse button allows AreaSelection(Rectangle, bool, bool).
Dragging with the right mouse button allows panning.
Dragging with the middle mouse button allows rotating and zooming.
Clicks and double-clicks are passed through.
Constructors
MouseInputProvider(Control)
Starts monitoring and processing mouse events received by a specific control.
public MouseInputProvider(Control control)
Parameters
control
ControlThe control receiving the mouse events.
Fields
ClickAccuracy
The number of pixels the mouse may move while pressed to still be considered a click.
public const int ClickAccuracy = 10
Field Value
Properties
InvertMouse
Invert the mouse axes.
public bool InvertMouse { get; set; }
Property Value
Methods
Dispose(bool)
To be called by Dispose() and the object destructor.
protected override void Dispose(bool disposing)
Parameters
disposing
booltrue
if called manually and not by the garbage collector.