natiny_input_get_mouse_captured
bool natiny_input_get_mouse_captured(void);
Returns whether mouse capture is enabled.
Returns
| Type | Description |
|---|---|
bool |
true when the mouse is captured, false otherwise |
Example
bool 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.