use bevy::{ ecs::schedule::StageLabel, prelude::{ResMut, SystemLabel, Windows}, }; pub mod action; pub mod camera; pub mod geometry; pub mod glamor; pub mod input; pub mod lights; pub mod ui; #[derive(Clone, Debug, Hash, PartialEq, Eq, SystemLabel, StageLabel)] pub enum Label { Geometry, Glamor, Input, Action, } pub fn disable_mouse_trap(mut windows: ResMut) { let window = windows.get_primary_mut().unwrap(); window.set_cursor_lock_mode(false); window.set_cursor_visibility(true); }