From df26843bea11b8662e73845c7be8dd4486683834 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 14 Jul 2003 20:09:50 +0000 Subject: [PATCH] If we don't have focus, discard input. --- stepmania/src/StepMania.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/stepmania/src/StepMania.cpp b/stepmania/src/StepMania.cpp index fa31e69667..085770f1d3 100644 --- a/stepmania/src/StepMania.cpp +++ b/stepmania/src/StepMania.cpp @@ -684,6 +684,11 @@ static void HandleInputEvents(float fDeltaTime) static InputEventArray ieArray; ieArray.clear(); // empty the array INPUTFILTER->GetInputEvents( ieArray ); + + /* If we don't have focus, discard input. */ + if( !g_bHasFocus ) + return; + for( unsigned i=0; i