mirror of
https://github.com/griffi-gh/kubi.git
synced 2024-12-26 21:58:20 -06:00
skip cursor lock on android
This commit is contained in:
parent
ec7cddec8d
commit
f33d1589b3
|
@ -9,6 +9,7 @@ pub fn update_cursor_lock_state(
|
||||||
lock: UniqueView<CursorLock>,
|
lock: UniqueView<CursorLock>,
|
||||||
display: NonSendSync<UniqueView<Renderer>>
|
display: NonSendSync<UniqueView<Renderer>>
|
||||||
) {
|
) {
|
||||||
|
#[cfg(not(target_os = "android"))] {
|
||||||
if lock.is_inserted_or_modified() {
|
if lock.is_inserted_or_modified() {
|
||||||
let gl_window = display.display.gl_window();
|
let gl_window = display.display.gl_window();
|
||||||
let window = gl_window.window();
|
let window = gl_window.window();
|
||||||
|
@ -19,6 +20,7 @@ pub fn update_cursor_lock_state(
|
||||||
window.set_cursor_visible(!lock.0);
|
window.set_cursor_visible(!lock.0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
pub fn insert_lock_state(
|
pub fn insert_lock_state(
|
||||||
storages: AllStoragesView
|
storages: AllStoragesView
|
||||||
|
|
Loading…
Reference in a new issue