shithub: riscv

Download patch

ref: cabbe0a84c7aae53316347185a5bdf8095bac9c8
parent: 92aa75e879f9089ed8af8552ba399a243d6bbda0
author: cinap_lenrek <[email protected]>
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: