From 0d400522e473a4b0593b65cc10f1c337ce6a0227 Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Fri, 30 May 2008 01:50:41 +0000 Subject: [PATCH] - Fixed: PrtScn/SysRq key did not work on Linux. SVN r999 (trunk) --- docs/rh-log.txt | 3 +++ src/sdl/i_input.cpp | 2 ++ 2 files changed, 5 insertions(+) diff --git a/docs/rh-log.txt b/docs/rh-log.txt index 6239b7c79..571355694 100644 --- a/docs/rh-log.txt +++ b/docs/rh-log.txt @@ -1,3 +1,6 @@ +May 29, 2008 +- Fixed: PrtScn/SysRq key did not work on Linux. + May 28, 2008 - Added an alternate module replay engine that uses foo_dumb's replayer, a heavily customized version of DUMB (Dynamic Universal Music Bibliotheque). diff --git a/src/sdl/i_input.cpp b/src/sdl/i_input.cpp index 8c8877908..2adfd6f09 100644 --- a/src/sdl/i_input.cpp +++ b/src/sdl/i_input.cpp @@ -192,6 +192,8 @@ static void InitKeySymMap () KeySymToDIK[SDLK_RSHIFT] = DIK_LSHIFT; KeySymToDIK[SDLK_RCTRL] = DIK_LCONTROL; KeySymToDIK[SDLK_RALT] = DIK_LMENU; + // Depending on your Linux flavor, you may get SDLK_PRINT or SDLK_SYSREQ + KeySymToDIK[SDLK_PRINT] = DIK_SYSRQ; } static void I_CheckGUICapture ()