don't queue input while dialog boxes have focus
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user