CmdWindowSetCursorGrab
Configures mouse cursor grabbing/locking.
Platform Notes
- WASM: Not supported (returns
success=falsewith a message).
Arguments
| Field | Type | Description |
|---|---|---|
| windowId | u32 | ID of the window |
| mode | CursorGrabMode | Grab mode ("none", "confined", "locked") |
Response
Returns CmdResultWindowSetCursorGrab:
| Field | Type | Description |
|---|---|---|
| success | bool | Whether the grab mode was set |
| message | String | Status or error message |
Documentation Vulfram Core