mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-30 09:43:45 +01:00
Skip pads if their analog is not set.
Not sure if a deadzone is needed... or if some pads may do a constant bottom left or something...
This commit is contained in:
1 parent
8271027fef
commit
1218db02f5
3 files changed
+6
-2
No files matched your search
@@ -55,7 +55,9 @@ int XinputDevice::UpdateState(InputState &input_state) {
|
||||
|
||||
// If there's an XInput pad, skip following pads. This prevents DInput and XInput
|
||||
// from colliding.
|
||||
return UPDATESTATE_SKIP_NEXT;
|
||||
if (left.x != 0.0f || left.y != 0.0f)
|
||||
return UPDATESTATE_SKIP_NEXT;
|
||||
return 0;
|
||||
} else {
|
||||
// wait check_delay frames before polling the controller again
|
||||
this->gamepad_idx = -1;
|
||||
|
||||
Reference in new issue
Block a user