mousemoverel

Moves the pointer by a relative offset.

Syntax

Signature
mousemoverel(X: number, Y: number) -> boolean

Aliases

This function has no aliases.

Parameters

ParameterTypeDescription
XnumberHorizontal delta in client pixels.
YnumberVertical delta in client pixels.

Returns

TypeDescription
booleanWhether the platform accepted the move event.

Notes

Each delta must be finite and between -32768 and 32767. Values are truncated to integers. A resulting position outside the client area is rejected.

Example

Luau
local Result = mousemoverel(10, 10)
print(Result)