summaryrefslogtreecommitdiff
path: root/sys/src/games
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2016-06-30 17:18:30 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2016-06-30 17:18:30 +0200
commitcabbe0a84c7aae53316347185a5bdf8095bac9c8 (patch)
treef3fde0f40956056e44374bd2a6f0074e7c980c2d /sys/src/games
parent92aa75e879f9089ed8af8552ba399a243d6bbda0 (diff)
doom: use Kprint for pause function (from qu7uux)
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.
Diffstat (limited to 'sys/src/games')
-rw-r--r--sys/src/games/doom/i_video.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/src/games/doom/i_video.c b/sys/src/games/doom/i_video.c
index 941d7e676..335faf1b9 100644
--- a/sys/src/games/doom/i_video.c
+++ b/sys/src/games/doom/i_video.c
@@ -222,6 +222,8 @@ runetokey(Rune r)
return KEY_BACKSPACE;
case '\n':
return KEY_ENTER;
+ case Kprint:
+ return KEY_PAUSE;
case KF|1:
case KF|2: