Remove unnecessary code. All archs can use print-screen or in the case of Apple keyboards, F13, to take a screen shot.
This commit is contained in:
@@ -938,24 +938,15 @@ bool HandleGlobalInputs( DeviceInput DeviceI, InputEventType type, GameInput Gam
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef DARWIN
|
|
||||||
/* The default Windows message handler will capture the desktop window upon
|
/* The default Windows message handler will capture the desktop window upon
|
||||||
* pressing PrntScrn, or will capture the foregroud with focus upon pressing
|
* pressing PrntScrn, or will capture the foregroud with focus upon pressing
|
||||||
* 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. */
|
||||||
|
/* Pressing F13 on an Apple keyboard sends SDLK_PRINT. */
|
||||||
// "if pressing PrintScreen and not pressing Alt"
|
// "if pressing PrintScreen and not pressing Alt"
|
||||||
if( DeviceI == DeviceInput(DEVICE_KEYBOARD, SDLK_PRINT) &&
|
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
|
|
||||||
/* Using F12 seems like a bad idea because this key already has a function
|
|
||||||
* in ScreenGameplay and in the editor (and those users don't care whether
|
|
||||||
* Alt is being held. Is there another key on the standard Mac keyboard
|
|
||||||
* that could be used for this purpose? -Chris */
|
|
||||||
if( DeviceI == DeviceInput(DEVICE_KEYBOARD, SDLK_F12) &&
|
|
||||||
( INPUTFILTER->IsBeingPressed( DeviceInput(DEVICE_KEYBOARD, SDLK_RMETA)) ||
|
|
||||||
INPUTFILTER->IsBeingPressed( DeviceInput(DEVICE_KEYBOARD, SDLK_LMETA))) )
|
|
||||||
#endif
|
|
||||||
{
|
{
|
||||||
// Save Screenshot.
|
// Save Screenshot.
|
||||||
CString sPath;
|
CString sPath;
|
||||||
|
|||||||
Reference in New Issue
Block a user