diff --git a/desmume/src/windows/DeSmuME_2005.vcproj b/desmume/src/windows/DeSmuME_2005.vcproj index b99e6d46a..262333006 100644 --- a/desmume/src/windows/DeSmuME_2005.vcproj +++ b/desmume/src/windows/DeSmuME_2005.vcproj @@ -55,6 +55,7 @@ ExceptionHandling="1" BufferSecurityCheck="false" EnableEnhancedInstructionSet="0" + FloatingPointModel="2" WarningLevel="1" DebugInformationFormat="4" CallingConvention="0" diff --git a/desmume/src/windows/DeSmuME_2008.vcproj b/desmume/src/windows/DeSmuME_2008.vcproj index d425b1403..8c0d0c82e 100644 --- a/desmume/src/windows/DeSmuME_2008.vcproj +++ b/desmume/src/windows/DeSmuME_2008.vcproj @@ -56,6 +56,7 @@ ExceptionHandling="1" BufferSecurityCheck="false" EnableEnhancedInstructionSet="0" + FloatingPointModel="2" DebugInformationFormat="4" CallingConvention="1" CompileAs="0" diff --git a/desmume/src/windows/inputdx.cpp b/desmume/src/windows/inputdx.cpp index b83551138..46c505984 100644 --- a/desmume/src/windows/inputdx.cpp +++ b/desmume/src/windows/inputdx.cpp @@ -1930,8 +1930,9 @@ bool S9xGetState (WORD KeyIdent) if(KeyIdent == 0 || KeyIdent == VK_ESCAPE) // if it's the 'disabled' key, it's never pressed return true; - //if(!GUI.BackgroundKeyGamekeys && GUI.hWnd != GetForegroundWindow()) - // return true; + //TODO - option for background game keys + if(MainWindow->getHWnd() != GetForegroundWindow()) + return true; if (KeyIdent & 0x8000) // if it's a joystick 'key': {