From 06e506e0f48e60db8dc9dc480c5b2cdd82960a20 Mon Sep 17 00:00:00 2001 From: Gustav Ahlberg Date: Sat, 8 Dec 2018 22:22:23 +0100 Subject: [PATCH] make it possible to unpause on macOS It's hard to press `SDLK_PAUSE` on macOS making it almost impossible to start a multiplayer game. Adding another key, `p`, makes it possible to unpause a multiplayer game on macOS. --- source/input.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/input.cc b/source/input.cc index c7eacac..a7bb276 100644 --- a/source/input.cc +++ b/source/input.cc @@ -100,7 +100,7 @@ class Input_SDL : public Input { keys[event.key.keysym.scancode] |= PRESSED; last_keysym = event.key.keysym; - if (event.key.keysym.sym == SDLK_PAUSE) + if (event.key.keysym.sym == SDLK_PAUSE || event.key.keysym.sym == SDLK_p) pause = true; if (!israw && key_pending < MAXKEY) {