mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-19 12:24:29 +01:00
disable background input for Windows
This commit is contained in:
1 parent
54aeb3ac6f
commit
15509420a8
3 files changed
+6
No files matched your search
@@ -1,4 +1,5 @@
|
||||
#include <limits.h>
|
||||
#include "Windows/WndMainWindow.h"
|
||||
#include "XinputDevice.h"
|
||||
#include "Core/Config.h"
|
||||
#include "input/input_state.h"
|
||||
@@ -22,6 +23,7 @@ static Stick NormalizedDeadzoneFilter(short x, short y);
|
||||
int XinputDevice::UpdateState(InputState &input_state) {
|
||||
if (g_Config.iForceInputDevice > 0) return -1;
|
||||
if (this->check_delay-- > 0) return -1;
|
||||
if (MainWindow::GetHWND() != GetForegroundWindow()) return -1;
|
||||
XINPUT_STATE state;
|
||||
ZeroMemory( &state, sizeof(XINPUT_STATE) );
|
||||
|
||||
|
||||
Reference in new issue
Block a user