mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-16 07:50:28 +02:00
Windows: add Force Input Device option;
This commit is contained in:
1 parent
eb371c4650
commit
e864569d0c
7 files changed
+34
-5
No files matched your search
@@ -1,5 +1,6 @@
|
||||
#include <limits.h>
|
||||
#include "XinputDevice.h"
|
||||
#include "Core/Config.h"
|
||||
#include "input/input_state.h"
|
||||
|
||||
#ifndef XUSER_MAX_COUNT
|
||||
@@ -19,6 +20,7 @@ struct Stick {
|
||||
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;
|
||||
XINPUT_STATE state;
|
||||
ZeroMemory( &state, sizeof(XINPUT_STATE) );
|
||||
|
||||
Reference in new issue
Block a user