From 06268ef92ba3d9a94323db5352df76157baab219 Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Fri, 15 Sep 2006 23:34:24 +0000 Subject: [PATCH] Use AppFocusChanged(). --- stepmania/src/GameLoop.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/stepmania/src/GameLoop.cpp b/stepmania/src/GameLoop.cpp index d86d02b7de..0f76b7b2ed 100644 --- a/stepmania/src/GameLoop.cpp +++ b/stepmania/src/GameLoop.cpp @@ -106,12 +106,8 @@ static bool ChangeAppPri() static void CheckFocus() { - static bool bHasFocus = true; - - bool bHasFocusNow = HOOKS->AppHasFocus(); - if( bHasFocus == bHasFocusNow ) + if( !HOOKS->AppFocusChanged() ) return; - bHasFocus = bHasFocusNow; /* If we lose focus, we may lose input events, especially key releases. */ INPUTFILTER->Reset();