This can't be set to F11--that key is used by screens. Please grep for

keyboard symbols before changing global hotkeys.
This commit is contained in:
Glenn Maynard
2003-09-05 19:34:33 +00:00
parent b744805329
commit cb550f1b65
+3 -1
View File
@@ -745,7 +745,9 @@ bool HandleGlobalInputs( DeviceInput DeviceI, InputEventType type, GameInput Gam
/* XXX: Er, this doesn't work; Windows traps this key and takes a screenshot
* into the clipboard. I don't want to disable that, though; it's useful. */
if(DeviceI == DeviceInput(DEVICE_KEYBOARD, SDLK_F11))
if( DeviceI == DeviceInput(DEVICE_KEYBOARD, SDLK_PAUSE) &&
( INPUTFILTER->IsBeingPressed( DeviceInput(DEVICE_KEYBOARD, SDLK_RALT)) ||
INPUTFILTER->IsBeingPressed( DeviceInput(DEVICE_KEYBOARD, SDLK_LALT))) )
{
// Save Screenshot.
CString sPath;