summaryrefslogtreecommitdiff
path: root/src/state.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/state.rs')
-rw-r--r--src/state.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/state.rs b/src/state.rs
index b705fd4..db72d10 100644
--- a/src/state.rs
+++ b/src/state.rs
@@ -72,6 +72,10 @@ impl EventHandler for State {
Ok(())
}
+ fn key_up_event(&mut self, _: &mut Context, keycode: KeyCode, _: KeyMods) {
+ self.player.give_key_up(keycode)
+ }
+
fn key_down_event(
&mut self,
context: &mut Context,
@@ -86,8 +90,4 @@ impl EventHandler for State {
}
}
}
-
- fn key_up_event(&mut self, _: &mut Context, keycode: KeyCode, _: KeyMods) {
- self.player.give_key_up(keycode)
- }
}