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

This commit is contained in:
zeromus 2009-02-15 02:22:26 +00:00
parent 40eaf9f5d6
commit 448161a65c
3 changed files with 5 additions and 2 deletions

View File

@ -55,6 +55,7 @@
ExceptionHandling="1"
BufferSecurityCheck="false"
EnableEnhancedInstructionSet="0"
FloatingPointModel="2"
WarningLevel="1"
DebugInformationFormat="4"
CallingConvention="0"

View File

@ -56,6 +56,7 @@
ExceptionHandling="1"
BufferSecurityCheck="false"
EnableEnhancedInstructionSet="0"
FloatingPointModel="2"
DebugInformationFormat="4"
CallingConvention="1"
CompileAs="0"

View File

@ -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':
{