aboutsummaryrefslogtreecommitdiffstats
path: root/src/client.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/client.rs')
-rw-r--r--src/client.rs3
1 files changed, 3 insertions, 0 deletions
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<Attack>,
cameras: Query<(&Camera, &GlobalTransform)>,
client_id: Res<ClientId>,
+ keyboard_input: Res<ButtonInput<KeyCode>>,
mouse_input: Res<ButtonInput<MouseButton>>,
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);
}