mirror of
https://github.com/rust-windowing/winit.git
synced 2026-09-02 06:40:06 -04:00
Also hide the cursor when grabbed
This commit is contained in:
@@ -523,6 +523,7 @@ impl Window {
|
|||||||
Ok(())
|
Ok(())
|
||||||
},
|
},
|
||||||
CursorState::Grab => {
|
CursorState::Grab => {
|
||||||
|
let _: () = unsafe { msg_send![cls, hide] };
|
||||||
let _: i32 = unsafe { CGAssociateMouseAndMouseCursorPosition(false) };
|
let _: i32 = unsafe { CGAssociateMouseAndMouseCursorPosition(false) };
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user