aboutsummaryrefslogtreecommitdiff
path: root/src/main.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.zig')
-rw-r--r--src/main.zig18
1 files changed, 12 insertions, 6 deletions
diff --git a/src/main.zig b/src/main.zig
index 3a534b9..875b02c 100644
--- a/src/main.zig
+++ b/src/main.zig
@@ -49,12 +49,18 @@ pub fn main() !void {
if (in.eqlDescription("escape") or in.eqlDescription("q")) {
done = true;
break;
- } else if (in.eqlDescription("arrow-left") or in.eqlDescription("a")) {
- gs.moveLeft();
- } else if (in.eqlDescription("arrow-right") or in.eqlDescription("d")) {
- gs.moveRight();
- } else if (in.eqlDescription("arrow-up") or in.eqlDescription("space")) {
- gs.moveJump();
+ } else if (in.eqlDescription("arrow-left")) {
+ gs.moveLeft(.right);
+ } else if (in.eqlDescription("arrow-right")) {
+ gs.moveRight(.right);
+ } else if (in.eqlDescription("arrow-up")) {
+ gs.moveJump(.right);
+ } else if (in.eqlDescription("a")) {
+ gs.moveLeft(.left);
+ } else if (in.eqlDescription("d")) {
+ gs.moveRight(.left);
+ } else if (in.eqlDescription("space")) {
+ gs.moveJump(.left);
}
}
} else {