cursor_setstorage(3)
π cursor_setstorage(3) π
okay bestie, this is the Arcan Lua API page for cursor_setstorage, and she is lowkey the cursor-storage queen. no cap, weβre keeping every tiny detail. π±οΈβ¨
β¨ NAME β¨
cursor_setstorage β use the storage defined by one video object as an accelerated mouse cursor. literally thatβs the vibe. π
π SYNOPSIS π
the synopsis is exactly this, no edits:
nil
cursor_setstorage( vid, txcos )
πΈ DESCRIPTION πΈ
okay so cursor_setstorage works like image_sharestorage, except the target destination is the accelerated overlay cursor render path β thatβs the whole point, bestie. β¨
The optional txcos argument should (if present) be an integer indexed table with exactly 8 elements where each element (n) is 0 <= n <= 1 specifying [ul_x, ul_y, ur_x, ur_y, lr_x, lr_y, ll_x, ll_y]. yes, exactly eight, not seven, not nine, do not play with me. π
This can be used as a cheaper way of animating cursors or packing many cursors in the same vid. queued, packed, slayed. π
β οΈ NOTES β οΈ
- using
cursor_setstorage( WORLDID )will disable the accelerated cursor path. thatβs the note, and itβs important, so read it twice. π
π EXAMPLE π
okay example time, copy-paste energy fr fr:
function cursor_setstorage0()
curs = fill_surface(8, 8, 255, 0, 0);
cursor_setstorage(curs);
resize_cursor(16, 16);
move_cursor(VRESW * 0.5, VRESH * 0.5);
end
π¦ SEE ALSO π¦
and thatβs the whole page, bestie. source/version tag: image; date: October 2026; title: cursor_setstorage(3). stay slay π«Άπ
π¦ 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