move_cursor(3)
π move_cursor(3) β Arcan Lua API π
okay bestie, we're in the Arcan Lua API and this page is about move_cursor(3). It's giving βput the mouse cursor exactly where I sayβ energy. π
πΈ NAME πΈ
move_cursor β set an absolute position for the mouse cursor. π±οΈβ¨
π SYNOPSIS π
The synopsis is literally these two lines, no cap:
nil
move_cursor( x, y, clamp )
π DESCRIPTION π
move_cursor sets an absolute position for the mouse cursor. π―
Heads up, bestie: if clamp is set to a non-zero value (default, 0), x and y will NOT be clamped to fit the screen. π«Ά
π§ EXAMPLE π§
Here's the example exactly as the page gives it β copy/paste responsibly, iykyk:
function move_cursor0()
print(cursor_position());
local img = fill_surface(32, 32, 255, 0, 0);
move_cursor(img, VRESW * 0.5, VRESH * 0.5);
print(cursor_position());
end
π SEE ALSO: π
π cute sign-off: source/version image, date October 2026, and this iconic little page is still move_cursor(3) π
π¦ where this page comes from
- nixos 26.05: arcan 0.7.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms