move_cursor(3)

πŸ“¦
version 0.7.1 Β· 2 versions
, in nixos 26.05

πŸŽ€ 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