Skip to content
Desktop inputOverviewNew · 0.744

setmousestate

Describe changing the module's cursor-visibility setting.

Details#

Sets the module's cursor-visibility boolean and returns the resulting setting. Other windows can also affect visible cursor behavior. Save and restore the previous setting for a temporary change.

Examples#

Example

Luau
local previous = getmousestate()
print(setmousestate(true))
setmousestate(previous)