Moves the cursor to the specified screen coordinates.
Target X position in pixels.
Target Y position in pixels.
Optionalsmooth: booleanWhen true, the cursor glides to the target over ~100 ms.
Injects a complete button press-and-release (DOWN + UP pair).
Use Mouse.Down / Mouse.Up to inject only one phase.
Optionalbutton: MouseClickButton"left" (default), "right", "middle", "x1", "x2".
Optionalclicks: numberNumber of clicks (default 1; use 2 for double-click).
Injects a button-down (press) event without a release.
Pair with Mouse.Up(button) to release.
Optionalbutton: MouseClickButton"left" (default), "right", "middle", "x1", "x2".
Injects a button-up (release) event without a press.
Intended to pair with a prior Mouse.Down call.
Optionalbutton: MouseClickButton"left" (default), "right", "middle", "x1", "x2".
Drags with the left button from (startX, startY) to (endX, endY).
Scrolls the mouse wheel. Positive = up, negative = down.
Registers a callback for every raw mouse event.
Receives a RawMouseEvent on each event.
Fires when a mouse button is pressed down, with optional modifier requirement.
With default block: true, both the button-down and its paired button-up
are suppressed from reaching other applications.
MouseButtonCombo string, e.g. "LButton", "Shift+LButton".
Invoked on button-down.
Optionaloptions: MouseButtonOptionsSee MouseButtonOptions.
Fires when a mouse button is pressed down (identical to OnButton).
Prefer this name when you also register an OnUp handler for the same button
to make the press/release pairing explicit.
MouseButtonCombo string.
Invoked on button-down.
Optionaloptions: MouseButtonOptionsSee MouseButtonOptions.
Fires when a mouse button is released.
Defaults to non-blocking (pass-through). When a paired OnButton/OnDown
already blocks this button, the up is suppressed automatically — no need to
set block: true here unless you want to block the up independently.
MouseButtonCombo string.
Invoked on button-up.
Optionaloptions: MouseUpOptionsSee MouseUpOptions.
Returns the current cursor position in screen pixel coordinates.