From cabbe0a84c7aae53316347185a5bdf8095bac9c8 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Thu, 30 Jun 2016 17:18:30 +0200 Subject: 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. --- sys/src/games/doom/i_video.c | 2 ++ 1 file changed, 2 insertions(+) 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: -- cgit v1.2.3