From 60370ad583d4c2e9881f9e8459ab1227b15cf2e0 Mon Sep 17 00:00:00 2001 From: hut Date: Tue, 19 Mar 2024 03:57:45 +0100 Subject: [PATCH] rm player.rs --- src/player.rs | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 src/player.rs 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) { - } - } -} -