nudge_cursor(3)

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

hiii bestie ✨ welcome to the nudge_cursor(3) page from the Arcan Lua API πŸ¦‹ this one is short and sweet, and yes we’re keeping every tiny detail, periodt πŸ’…

πŸ’– NAME πŸ’–

  • nudge_cursor β€” moves the mouse cursor relative to its current position πŸ–±οΈβœ¨

✨ SYNOPSIS ✨

the synopsis has a literal nil line first β€” no cap, that’s just how it is πŸ™ˆ β€” then the call:

nil
nudge_cursor( d_x, d_y, clamp )

πŸ’… DESCRIPTION πŸ’…

okay so here’s the whole vibe: if clamp is set to a non-zero value (and the default is 0), then the coordinates will NOT be clamped to fit the screen 😭πŸ”₯.

πŸŽ€ EXAMPLE πŸŽ€

here’s the example, copied exactly because we do not play with code πŸ’…:

function nudge_cursor0()
      move_cursor(VRESW * 0.5, VRESH * 0.5);
      print(cursor_position());
      nudge_cursor(15, -15);
      print(cursor_position());
end

🌈 SEE ALSO: 🌈

  • image β€” that’s the reference listed, go peek at it if you’re curious πŸ‘€

mwah πŸ’‹ and that’s a wrap! footer crumbs for the record: source/version image, date October 2026 β€” the nudge_cursor(3) page is done, slay πŸŽ€πŸ‘‘

πŸ“¦ where this page comes from