diff --git a/src/player.rs b/src/player.rs deleted file mode 100644 index 49f9474..0000000 --- a/src/player.rs +++ /dev/null @@ -1,21 +0,0 @@ -use bevy::prelude::*; -use bevy::window::PrimaryWindow; - -pub fn handle_input( - keyboard_input: Res>, - mut windows: Query<&mut Window, With>, -) { - let window_result = windows.get_single_mut(); - let mut focused = true; - if window_result.is_ok() { - let window = window_result.unwrap(); - if !window.focused { - focused = false; - } - } - if focused { - if keyboard_input.pressed(KeyCode::KeyW) { - } - } -} -