Use SDLK_PRINT instead of SDLK_SYSREQ.

This commit is contained in:
Glenn Maynard
2003-09-28 23:20:22 +00:00
parent 9e69a06d4b
commit fa27886b1c
3 changed files with 7 additions and 2 deletions
+1 -1
View File
@@ -754,7 +754,7 @@ bool HandleGlobalInputs( DeviceInput DeviceI, InputEventType type, GameInput Gam
* Alt+PrntScrn. Windows will do this whether or not we save a screenshot * Alt+PrntScrn. Windows will do this whether or not we save a screenshot
* ourself by dumping the frame buffer. */ * ourself by dumping the frame buffer. */
// "if pressing PrintScreen and not pressing Alt" // "if pressing PrintScreen and not pressing Alt"
if( DeviceI == DeviceInput(DEVICE_KEYBOARD, SDLK_SYSREQ) && if( DeviceI == DeviceInput(DEVICE_KEYBOARD, SDLK_PRINT) &&
!INPUTFILTER->IsBeingPressed( DeviceInput(DEVICE_KEYBOARD, SDLK_RALT)) && !INPUTFILTER->IsBeingPressed( DeviceInput(DEVICE_KEYBOARD, SDLK_RALT)) &&
!INPUTFILTER->IsBeingPressed( DeviceInput(DEVICE_KEYBOARD, SDLK_LALT)) ) !INPUTFILTER->IsBeingPressed( DeviceInput(DEVICE_KEYBOARD, SDLK_LALT)) )
#else #else
@@ -281,7 +281,7 @@ static int ConvertScancodeToKey( int scancode )
case DIK_NUMPADENTER: return SDLK_KP_ENTER; case DIK_NUMPADENTER: return SDLK_KP_ENTER;
case DIK_RCONTROL: return SDLK_RCTRL; case DIK_RCONTROL: return SDLK_RCTRL;
case DIK_DIVIDE: return SDLK_KP_DIVIDE; case DIK_DIVIDE: return SDLK_KP_DIVIDE;
case DIK_SYSRQ: return SDLK_SYSREQ; case DIK_SYSRQ: return SDLK_PRINT;
case DIK_RMENU: return SDLK_RALT; case DIK_RMENU: return SDLK_RALT;
case DIK_PAUSE: return SDLK_PAUSE; case DIK_PAUSE: return SDLK_PAUSE;
case DIK_HOME: return SDLK_HOME; case DIK_HOME: return SDLK_HOME;
@@ -89,6 +89,11 @@ void InputHandler_SDL::Update(float fDeltaTime)
case SDL_KEYUP: case SDL_KEYUP:
{ {
DeviceInput di(DEVICE_KEYBOARD, event.key.keysym.sym); DeviceInput di(DEVICE_KEYBOARD, event.key.keysym.sym);
/* SDL is inconsistent about this key: */
if( di.button == SDLK_SYSREQ )
di.button = SDLK_PRINT;
ButtonPressed(di, event.key.state == SDL_PRESSED); ButtonPressed(di, event.key.state == SDL_PRESSED);
} }
continue; continue;