cyber_rider/src/lib.rs

15 lines
327 B
Rust
Raw Normal View History

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);
}