cyber_rider/src/lib.rs

27 lines
534 B
Rust
Raw Normal View History

2022-01-14 06:05:51 +00:00
use bevy::{
ecs::schedule::StageLabel,
prelude::{ResMut, SystemLabel, Windows},
};
2022-01-14 06:05:51 +00:00
pub mod action;
pub mod camera;
pub mod geometry;
2022-01-14 06:05:51 +00:00
pub mod glamor;
pub mod input;
pub mod lights;
pub mod ui;
2022-01-14 06:05:51 +00:00
#[derive(Clone, Debug, Hash, PartialEq, Eq, SystemLabel, StageLabel)]
pub enum Label {
Geometry,
Glamor,
Input,
Action,
}
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);
}