From cf22782ab966a014439c818a43cde794164381ea Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Wed, 13 Jul 2005 00:22:59 +0000 Subject: [PATCH] add AppHasFocus --- stepmania/src/StepMania.cpp | 5 +++++ stepmania/src/StepMania.h | 1 + 2 files changed, 6 insertions(+) diff --git a/stepmania/src/StepMania.cpp b/stepmania/src/StepMania.cpp index 5907dd59bd..8f3259663d 100644 --- a/stepmania/src/StepMania.cpp +++ b/stepmania/src/StepMania.cpp @@ -1461,6 +1461,11 @@ void FocusChanged( bool bHasFocus ) } } +bool AppHasFocus() +{ + return g_bHasFocus; +} + static void CheckSkips( float fDeltaTime ) { if( !PREFSMAN->m_bLogSkips ) diff --git a/stepmania/src/StepMania.h b/stepmania/src/StepMania.h index 49ccda2cae..0dcd9c7c90 100644 --- a/stepmania/src/StepMania.h +++ b/stepmania/src/StepMania.h @@ -16,6 +16,7 @@ void ResetGame(); void SaveGamePrefsToDisk(); void ChangeCurrentGame( const Game* g ); void FocusChanged( bool bHasFocus ); +bool AppHasFocus(); // If successful, return filename of screenshot in sDir, else return "" CString SaveScreenshot( CString sDir, bool bSaveCompressed, bool bMakeSignature, int iIndex = -1 );