setCursorGrab
fun setCursorGrab(grab: Boolean): ERROR CLASS: Symbol not found for js.promise.Promise<ERROR CLASS: Symbol not found for js.core.Void>(source)
Grabs the cursor, preventing it from leaving the window.
There's no guarantee that the cursor will be hidden. You should hide it by yourself if you want so.
Platform-specific
Linux: Unsupported.
macOS: This locks the cursor in a fixed location, which looks visually awkward.
Parameters
grab
true to grab the cursor icon, false to release it.