Quit is now handled by a menu key equivalent.
This commit is contained in:
@@ -1290,7 +1290,7 @@ bool HandleGlobalInputs( const InputEventPlus &input )
|
|||||||
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 MACOSX
|
#if !defined(MACOSX)
|
||||||
if( input.DeviceI == DeviceInput(DEVICE_KEYBOARD, KEY_F4) )
|
if( input.DeviceI == DeviceInput(DEVICE_KEYBOARD, KEY_F4) )
|
||||||
{
|
{
|
||||||
if( INPUTFILTER->IsBeingPressed( DeviceInput(DEVICE_KEYBOARD, KEY_RALT)) ||
|
if( INPUTFILTER->IsBeingPressed( DeviceInput(DEVICE_KEYBOARD, KEY_RALT)) ||
|
||||||
@@ -1301,17 +1301,6 @@ bool HandleGlobalInputs( const InputEventPlus &input )
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#else
|
|
||||||
if( input.DeviceI == DeviceInput(DEVICE_KEYBOARD, KEY_Cq) )
|
|
||||||
{
|
|
||||||
if(INPUTFILTER->IsBeingPressed(DeviceInput(DEVICE_KEYBOARD, KEY_RMETA)) ||
|
|
||||||
INPUTFILTER->IsBeingPressed(DeviceInput(DEVICE_KEYBOARD, KEY_LMETA)))
|
|
||||||
{
|
|
||||||
// pressed CMD-Q
|
|
||||||
ExitGame();
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
bool bDoScreenshot =
|
bool bDoScreenshot =
|
||||||
|
|||||||
Reference in New Issue
Block a user