From 486d0a8ef1c2e79473c698bee523e9592a070c5c Mon Sep 17 00:00:00 2001 From: Alexander Foremny Date: Sun, 24 Mar 2024 05:57:34 +0100 Subject: feat: add stop (`s`) input --- src/client.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/client.rs b/src/client.rs index fc781cc..6fe86b6 100644 --- a/src/client.rs +++ b/src/client.rs @@ -293,6 +293,7 @@ fn buffer_input( mut attack: ResMut, cameras: Query<(&Camera, &GlobalTransform)>, client_id: Res, + keyboard_input: Res>, mouse_input: Res>, mut client: ClientMut, windows: Query<&Window>, @@ -344,6 +345,8 @@ fn buffer_input( } } } + } else if keyboard_input.just_pressed(KeyCode::KeyS) { + client.add_input(Inputs::Imperative(Imperative::Idle)); } else { client.add_input(Inputs::None); } -- cgit v1.2.3