don't queue input while dialog boxes have focus

This commit is contained in:
Glenn Maynard
2004-01-13 02:22:18 +00:00
parent 0ed835685a
commit 3cb62064fe
@@ -4,6 +4,7 @@
#include "global.h"
#include "InputHandler_DirectInput.h"
#include "StepMania.h"
#include "RageUtil.h"
#include "RageLog.h"
#include "SDL_utils.h"
@@ -338,6 +339,11 @@ void InputHandler_DInput::UpdateBuffered(DIDevice &device, const RageTimer &tm)
return;
}
/* XXX: We should check GetConsoleWindow(), to allow input while the console window
* is focused. */
if( GetForegroundWindow() != g_hWndMain )
return;
for(int i = 0; i < (int) numevents; ++i)
{
for(unsigned j = 0; j < device.Inputs.size(); ++j)