OS X only -
1. Change the quit key press from alt-F4 to CMD-Q. 2. Change the screenshot key from SysReq (which macs don't have) to keypad '*'. All - When taking screenshots it was using a 4 digit number but the counter was only going from 0000 to 0999. Fixed.
This commit is contained in:
@@ -606,6 +606,7 @@ bool HandleGlobalInputs( DeviceInput DeviceI, InputEventType type, GameInput Gam
|
|||||||
return false; // Attract need to know because they go to TitleMenu on > 1 credit
|
return false; // Attract need to know because they go to TitleMenu on > 1 credit
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef DARWIN
|
||||||
if(DeviceI == DeviceInput(DEVICE_KEYBOARD, SDLK_F4))
|
if(DeviceI == DeviceInput(DEVICE_KEYBOARD, SDLK_F4))
|
||||||
{
|
{
|
||||||
if( INPUTFILTER->IsBeingPressed( DeviceInput(DEVICE_KEYBOARD, SDLK_RALT)) ||
|
if( INPUTFILTER->IsBeingPressed( DeviceInput(DEVICE_KEYBOARD, SDLK_RALT)) ||
|
||||||
@@ -616,12 +617,28 @@ bool HandleGlobalInputs( DeviceInput DeviceI, InputEventType type, GameInput Gam
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
if(DeviceI == DeviceInput(DEVICE_KEYBOARD, SDLK_q))
|
||||||
|
{
|
||||||
|
if(INPUTFILTER->IsBeingPressed(DeviceInput(DEVICE_KEYBOARD, SDLK_RMETA)) ||
|
||||||
|
INPUTFILTER->IsBeingPressed(DeviceInput(DEVICE_KEYBOARD, SDLK_LMETA)))
|
||||||
|
{
|
||||||
|
// pressed CMD-Q
|
||||||
|
ExitGame();
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef DARWIN
|
||||||
if(DeviceI == DeviceInput(DEVICE_KEYBOARD, SDLK_SYSREQ))
|
if(DeviceI == DeviceInput(DEVICE_KEYBOARD, SDLK_SYSREQ))
|
||||||
{
|
#else
|
||||||
|
if(DeviceI == DeviceInput(DEVICE_KEYBOARD, SDLK_KP_MULTIPLY))
|
||||||
|
#endif
|
||||||
|
{
|
||||||
// Save Screenshot.
|
// Save Screenshot.
|
||||||
CString sPath;
|
CString sPath;
|
||||||
for( int i=0; i<1000; i++ )
|
for( int i=0; i<10000; i++ )
|
||||||
{
|
{
|
||||||
sPath = ssprintf("screen%04d.bmp",i);
|
sPath = ssprintf("screen%04d.bmp",i);
|
||||||
if( !DoesFileExist(sPath) )
|
if( !DoesFileExist(sPath) )
|
||||||
|
|||||||
Reference in New Issue
Block a user