Yuari
Documentation
Docs/Input & clipboard/mousemoveabs

mousemoveabs

Move the cursor absolutely (client coords) or relatively; mousescroll sends wheel notches.

Syntax

mousemoveabs(x: any, y: any) -> nil

Parameters

ParameterTypeDescription
xanyThe x value used by the call.
yanyThe y value used by the call.

Returns

TypeDescription
nilThis 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.