MouseOverlordEventHandler Class
Implement this class interface and pass an instance to the MouseOverlord.Capture method to begin receiving mouse event notifications. Note that only one MouseOverlordEventHandler instance can receive events at any given time.
Tip: If your application runs in a window, you can simply implement this interface in the window itself. For global event handling (or to emulate the old Mouse Overlord Plugin's behavior) implement this interface within the App class.
Methods
Expand All | Collapse All
-
MouseOverlordButtonHandler ( button As Integer, down As Boolean )
This method is invoked when a mouse button is pressed or released. The button parameter identifies which mouse button generated the event, starting with button number 1 (typically the default/left button). The down parameter is True when a button is pressed, and False when a button is released. -
MouseOverlordMoveHandler ( deltaX As Single, deltaY As Single )
This method is invoked when the mouse is moved or dragged. The delta values are the distance of movement along each axis since the previous movement. -
MouseOverlordWheelHandler ( deltaX As Integer, deltaY As Integer )
This method is invoked when a scroll-wheel is rotated or tilted. A positive deltaY value indicates an upward vertical scroll, and a positive deltaX indicates a horizontal scroll to the right. Negative values indicate the opposite direction.
Note: Holding the Shift key while scrolling vertically may generate horizontal scroll events at the system level. This situation can be detected by checking the Keyboard.AsyncShiftKey state within this handler.