mousemoveabs
Move the cursor absolutely (client coords) or relatively; mousescroll sends wheel notches.
Syntax
mousemoveabs(x: any, y: any) -> nil
Parameters
| Parameter | Type | Description |
|---|---|---|
x | any | The x value used by the call. |
y | any | The y value used by the call. |
Returns
| Type | Description |
|---|---|
nil | This function does not return a value. |
Description
mousemoveabs is part of the Input & clipboard library. Input helpers read or synthesize OS input and only report state while the game window is focused.
The operation is performed immediately using the arguments supplied at the call site.
The aliases mousemoverel(dx, dy), mousemoverel & mousescroll(notches) resolve to the same implementation.
Example
mousemoveabs(100, 100)
mousemoverel(10, 0)
mousescroll(1)
Notes
- Aliases:
mousemoverel(dx, dy),mousemoverel & mousescroll(notches). - Input status is focus-gated and only reports while the game is active.