14 lines
326 B
Rust
14 lines
326 B
Rust
use bevy::prelude::{ResMut, Windows};
|
|
|
|
pub mod camera;
|
|
pub mod geometry;
|
|
pub mod input;
|
|
pub mod lights;
|
|
pub mod action;
|
|
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);
|
|
}
|