summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorFranklin Wei <git@fwei.tk>2019-07-12 15:57:48 -0400
committerFranklin Wei <git@fwei.tk>2019-07-12 16:21:11 -0400
commit7739ad662271f3f3cdb7fe39ebc33666d2b4aec5 (patch)
treef67eccdea041a53a2d71518703bbfa6084a86bb9 /apps
parentee58f2601c2a03cec96568371a68e5f1bf0de170 (diff)
downloadrockbox-7739ad662271f3f3cdb7fe39ebc33666d2b4aec5.tar.gz
rockbox-7739ad662271f3f3cdb7fe39ebc33666d2b4aec5.tar.bz2
rockbox-7739ad662271f3f3cdb7fe39ebc33666d2b4aec5.zip
wolf3d: allow entering in-game jukebox by holding fire button
Change-Id: I8936178191e682b70c64ef6ae04d6636e5cf3521
Diffstat (limited to 'apps')
-rw-r--r--apps/plugins/sdl/progs/wolf3d/wl_main.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/apps/plugins/sdl/progs/wolf3d/wl_main.c b/apps/plugins/sdl/progs/wolf3d/wl_main.c
index bd164b6218..634196498a 100644
--- a/apps/plugins/sdl/progs/wolf3d/wl_main.c
+++ b/apps/plugins/sdl/progs/wolf3d/wl_main.c
@@ -1277,7 +1277,13 @@ static void InitGame()
// HOLDING DOWN 'M' KEY? (Fire for rockbox)
//
#ifndef SPEARDEMO
- if (Keyboard[sc_Control])
+ /* allow entering jukebox */
+
+ rb->sleep(HZ / 10);
+
+ IN_ProcessEvents();
+
+ if (Keyboard[sc_Return])
{
DoJukebox();
didjukebox=true;