disable background input for Windows

This commit is contained in:
CrazyMax committed 2013-04-28 12:30:43 +03:00
1 parent 54aeb3ac6f
commit 15509420a8
3 files changed
+6

No files matched your search

+2
View File
@@ -16,6 +16,7 @@
// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.
#include <limits.h>
#include "Windows/WndMainWindow.h"
#include "DinputDevice.h"
#include "Core/Config.h"
#include "input/input_state.h"
@@ -117,6 +118,7 @@ int DinputDevice::UpdateState(InputState &input_state)
{
if (g_Config.iForceInputDevice == 0) return -1;
if (!pJoystick) return -1;
if (MainWindow::GetHWND() != GetForegroundWindow()) return -1;
DIJOYSTATE2 js;