devela::_dep::miniquad::window

Function set_cursor_grab

pub fn set_cursor_grab(grab: bool)
Available on crate feature dep_miniquad only.
Expand description

Capture mouse cursor to the current window On WASM this will automatically hide cursor On desktop this will bound cursor to windows border NOTICE: on desktop cursor will not be automatically released after window lost focus so set_cursor_grab(false) on window’s focus lost is recommended. TODO: implement window focus events