2022-01-12 08:18:13 +00:00
|
|
|
use bevy::prelude::{ResMut, Windows};
|
|
|
|
|
|
|
|
pub mod camera;
|
|
|
|
pub mod geometry;
|
|
|
|
pub mod input;
|
|
|
|
pub mod lights;
|
2022-01-13 22:28:44 +00:00
|
|
|
pub mod action;
|
2022-01-12 08:18:13 +00:00
|
|
|
pub mod ui;
|
|
|
|
|
|
|
|
pub fn disable_mouse_trap(mut windows: ResMut<Windows>) {
|
|
|
|
let window = windows.get_primary_mut().unwrap();
|
|
|
|
window.set_cursor_lock_mode(false);
|
|
|
|
window.set_cursor_visibility(true);
|
|
|
|
}
|