ref: df0f5908557a06f34d0ca48fd42f10a451f16715
parent: e921399c4f3c2da33164706c1b172571a3dd3153
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Thu Jun 30 13:18:30 EDT 2016
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.
--- a/sys/src/games/doom/i_video.c
+++ b/sys/src/games/doom/i_video.c
@@ -222,6 +222,8 @@
return KEY_BACKSPACE;
case '\n':
return KEY_ENTER;
+ case Kprint:
+ return KEY_PAUSE;
case KF|1:
case KF|2:
--
⑨