From ff3b4dfdef4e661394216d93e056813b093694ff Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Fri, 14 May 2010 00:46:59 -0400 Subject: [PATCH] Implemented isFocused(). --- Source/OpenGL_Windows.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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); } -- 2.39.2