Skip to content
Desktop inputOverview

mousemoverel

Represents relative mouse pointer movement.

Details#

Moves the desktop cursor by signed horizontal and vertical deltas. Relative movement is subject to desktop input behavior and differs from absolute screen coordinates.

Examples#

Example

Luau
if iswindowactive() then
    mousemoverel(10, 0)
    mousemoverel(-10, 0)
end