natiny.input.get_mouse_captured
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
local captured = natiny.input.get_mouse_captured()
Notes
- Escape releases the mouse. In a browser, changing tabs can also release it.
- Use
natiny.input.set_mouse_captureto change the state.