aboutsummaryrefslogtreecommitdiff
path: root/src/input/systems.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/input/systems.rs')
-rw-r--r--src/input/systems.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/input/systems.rs b/src/input/systems.rs
index 9560e1e..9be9f25 100644
--- a/src/input/systems.rs
+++ b/src/input/systems.rs
@@ -29,7 +29,8 @@ pub fn input_handling(
mut input: ResMut<TerminalInput>,
mut event_writer: EventWriter<TerminalInputEvent>,
) {
- input.clear_released();
+ input.clear_just_released();
+ input.clear_just_pressed();
let mut event_queue = event_queue.0.lock().unwrap();
let mut key_events = Vec::<KeyEvent>::new();
while let Some(event) = event_queue.pop() {
@@ -51,4 +52,4 @@ pub fn input_handling(
_ => (),
}
}
-} \ No newline at end of file
+}