* doom: use Kprint for pause function
@ 2016-06-30 18:08 qwx
0 siblings, 0 replies; only message in thread
From: qwx @ 2016-06-30 18:08 UTC (permalink / raw)
To: 9front
doom: use Kprint for pause function
the pause function is different from just accessing the menu: it pauses both
single and multiplayer games, stops music and sound, and is recorded in demos
(does not cause a desync, unlike menu access).
this uses Kprint rather than Kbreak because Kbreak is e.g. Kctl+pause on some
keyboards.
diff -r 0a3cf47fce65 sys/src/games/doom/i_video.c
--- a/sys/src/games/doom/i_video.c Mon Jun 27 00:36:54 2016 +0200
+++ b/sys/src/games/doom/i_video.c Thu Jun 30 16:13:29 2016 +0300
@@ -222,6 +222,8 @@
return KEY_BACKSPACE;
case '\n':
return KEY_ENTER;
+ case Kprint:
+ return KEY_PAUSE;
case KF|1:
case KF|2:
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-06-30 15:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-30 18:08 doom: use Kprint for pause function qwx
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).