From 448161a65c80e92c7017f30960116f69694133b1 Mon Sep 17 00:00:00 2001 From: zeromus Date: Sun, 15 Feb 2009 02:22:26 +0000 Subject: [PATCH] windows: change debug builds to use fast floating point. since thats what we want final builds to use. also, prevent hotkeys and input keys from working while the game window is not foreground --- desmume/src/windows/DeSmuME_2005.vcproj | 1 + desmume/src/windows/DeSmuME_2008.vcproj | 1 + desmume/src/windows/inputdx.cpp | 5 +++-- 3 files changed, 5 insertions(+), 2 deletions(-) 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': {