natiny.input.get_mouse_captured

Lua
natiny.input.get_mouse_captured() -> boolean

Returns whether mouse capture is enabled.

Returns

Type Description
boolean true when the mouse is captured, false otherwise

Example

Lua
local captured = natiny.input.get_mouse_captured()

Notes