aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index 8488a2e..75452d9 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -61,6 +61,11 @@ fn main() {
InputEvent::Keyboard(KeyEvent::Char('k')) => state.player.move_by(UP).unwrap(),
InputEvent::Keyboard(KeyEvent::Char('h')) => state.player.move_by(LEFT).unwrap(),
InputEvent::Keyboard(KeyEvent::Char('l')) => state.player.move_by(RIGHT).unwrap(),
+ // Arrow keys for noobs
+ InputEvent::Keyboard(KeyEvent::Down) => state.player.move_by(DOWN).unwrap(),
+ InputEvent::Keyboard(KeyEvent::Up) => state.player.move_by(UP).unwrap(),
+ InputEvent::Keyboard(KeyEvent::Left) => state.player.move_by(LEFT).unwrap(),
+ InputEvent::Keyboard(KeyEvent::Right) => state.player.move_by(RIGHT).unwrap(),
_ => (),
}
}