From b8eed6f5d01ea1340d0689b0e444ddebf55d8a9f Mon Sep 17 00:00:00 2001 From: Lephenixnoir Date: Fri, 30 Jul 2021 17:36:56 +0200 Subject: [PATCH] Enable menu (X,O,T is ESCAPE, log is RETURN) This is temporary, the keymap will likely be changed later. --- README | 1 - cgdoom/i_system.c | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README b/README index cf67386..543b0cc 100644 --- a/README +++ b/README @@ -13,7 +13,6 @@ TODO: -> Some bad textures here and there -> Supply more VRAM memory to internal allocator -> Level selector --> Difficulty selector -> Rate-limit the game when overclocking -> Run key? -> FPS counter on-screen diff --git a/cgdoom/i_system.c b/cgdoom/i_system.c index 06dcf1f..b5b355e 100644 --- a/cgdoom/i_system.c +++ b/cgdoom/i_system.c @@ -309,6 +309,8 @@ int KeycodeToDoomKey(int code) case KEYCODE_OPTN: return KEY_PAUSE; case KEYCODE_0: return KEY_SLEFTARROW; case KEYCODE_DOT: return KEY_SRIGHTARROW; + case KEYCODE_XOT: return KEY_ESCAPE; + case KEYCODE_LOG: return KEY_ENTER; default: return -1; } }