- Removed HaveFocus variable in preference of using GetForegroundWindow().

SVN r1616 (trunk)
This commit is contained in:
Randy Heit 2009-05-27 21:11:06 +00:00
commit a925f7eab6
4 changed files with 2 additions and 7 deletions

View file

@ -145,7 +145,6 @@ EXTERN_CVAR (Bool, lookstrafe)
extern BOOL paused;
bool HaveFocus;
static bool noidle = false;
LPDIRECTINPUT8 g_pdi;
@ -376,12 +375,10 @@ LRESULT CALLBACK WndProc (HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
return 0;
case WM_KILLFOCUS:
HaveFocus = false;
I_CheckNativeMouse (true); // Make sure mouse gets released right away
break;
case WM_SETFOCUS:
HaveFocus = true;
I_CheckNativeMouse (false);
break;