mousemoveabs
Moves or scrolls the mouse.
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 library. Input helpers either read the current OS input state or synthesize OS-level events. Some game interactions also require the Roblox window to be focused.
The operation is performed immediately using the arguments supplied at the call site.
The aliases mousemoverel(dx, dy), mousescroll(notches) resolve to the same implementation.
Example
mousemoveabs(100, 100)
mousemoverel(10, -5)
mousescroll(1)
Notes
- Aliases:
mousemoverel(dx, dy),mousescroll(notches). - Synthetic input may be ignored by games that validate input origins.