aboutsummaryrefslogtreecommitdiff
path: root/src/game.c
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2023-08-11 21:04:54 +0100
committerJuan J. Martinez <jjm@usebox.net>2023-08-11 21:04:54 +0100
commit43503cfa510a7f7e650efccaac266d7cc6657a5d (patch)
treef0fc2a9b480f413f8f0bab25bd97170b17a794b8 /src/game.c
parentcd2296358a03ab9ca4d6c017262735eaa63b5fdb (diff)
downloadgold-mine-run-43503cfa510a7f7e650efccaac266d7cc6657a5d.tar.gz
gold-mine-run-43503cfa510a7f7e650efccaac266d7cc6657a5d.zip
Better koystick support1.2
Diffstat (limited to 'src/game.c')
-rw-r--r--src/game.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/game.c b/src/game.c
index c2420ca..67c6ffe 100644
--- a/src/game.c
+++ b/src/game.c
@@ -382,8 +382,15 @@ update_menu:
goto update_menu;
}
- if (keys[KEY_ENTER])
+ if (keys[KEY_ENTER] || (ctl & CTL_FIRE1))
+ {
+ while (keys[KEY_ENTER] || (ctl & CTL_FIRE1))
+ {
+ ctl = control_read();
+ wait_vsync();
+ }
break;
+ }
}
wait_vsync();