[][src]Function sapp_wasm::sapp_set_cursor_grab

pub unsafe extern "C" fn sapp_set_cursor_grab(grab: bool)

call "requestPointerLock" and "exitPointerLock" internally. Will hide cursor and will disable mouse_move events, but instead will will make inifinite mouse field for raw_device_input event. Notice that this function will works only from "engaging" event callbacks - from "mouse_down"/"key_down" event handler functions.