summaryrefslogtreecommitdiff
path: root/src/state.rs
diff options
context:
space:
mode:
authortom barrett <spalf0@gmail.com>2019-07-05 08:59:22 -0500
committertom barrett <spalf0@gmail.com>2019-07-05 08:59:22 -0500
commitbfdaef7850b6ac17bb88f1b314236fb5014aac8e (patch)
tree748ceca98138b5783655ec181ea905a25a690934 /src/state.rs
parent6589e5e3df63d5abf85313c4d21097432257f453 (diff)
now a cells struct whichs layers own, which takes from tileset tiles
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)
- }
}