From: Ryan C. Gordon Date: Fri, 14 May 2010 04:46:59 +0000 (-0400) Subject: Implemented isFocused(). X-Git-Url: https://git.jsancho.org/?a=commitdiff_plain;ds=sidebyside;h=ff3b4dfdef4e661394216d93e056813b093694ff;p=lugaru.git Implemented isFocused(). --- diff --git a/Source/OpenGL_Windows.cpp b/Source/OpenGL_Windows.cpp index e112066..c1eae17 100644 --- a/Source/OpenGL_Windows.cpp +++ b/Source/OpenGL_Windows.cpp @@ -1187,13 +1187,9 @@ void CleanUp (void) // -------------------------------------------------------------------------- -static bool g_focused = true; - - static bool IsFocused() { - STUBBED("write me"); - return true; + return ((SDL_GetAppState() & SDL_APPINPUTFOCUS) != 0); }