Core Docs vulfram-core@0.16

CmdWindowSetCursorGrab

Configures mouse cursor grabbing/locking.

Platform Notes

  • WASM: Not supported (returns success=false with 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