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;
|
|
|
|
pub mod physics;
|
|
|
|
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);
|
|
|
|
}
|