commit | 7739ad662271f3f3cdb7fe39ebc33666d2b4aec5 | [log] [tgz] |
---|---|---|
author | Franklin Wei <git@fwei.tk> | Fri Jul 12 15:57:48 2019 -0400 |
committer | Franklin Wei <git@fwei.tk> | Fri Jul 12 16:21:11 2019 -0400 |
tree | f67eccdea041a53a2d71518703bbfa6084a86bb9 | |
parent | ee58f2601c2a03cec96568371a68e5f1bf0de170 [diff] |
wolf3d: allow entering in-game jukebox by holding fire button Change-Id: I8936178191e682b70c64ef6ae04d6636e5cf3521
diff --git a/apps/plugins/sdl/progs/wolf3d/wl_main.c b/apps/plugins/sdl/progs/wolf3d/wl_main.c index bd164b6..6341964 100644 --- a/apps/plugins/sdl/progs/wolf3d/wl_main.c +++ b/apps/plugins/sdl/progs/wolf3d/wl_main.c
@@ -1277,7 +1277,13 @@ // 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;