From f12d369b51b1ec83c26c5a01047d16d1c94f9c49 Mon Sep 17 00:00:00 2001 From: PewnyPL Date: Fri, 30 Aug 2013 18:34:21 +0200 Subject: [PATCH] An (ugly) hack to make some Bluetooth Gamepads to work. The problem with BT gamepads is the fact they tend to show up as multiple gamepads, while PPSSPP only recognises two. Until the whole gamepad code is reworked, this will allow them to work by always returning inputPlayerA in case of an additional recognised gamepad. Fixes issue #3314 --- android/src/com/henrikrydgard/libnative/NativeActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/src/com/henrikrydgard/libnative/NativeActivity.java b/android/src/com/henrikrydgard/libnative/NativeActivity.java index 90efe45bcf..ae72ed4e40 100644 --- a/android/src/com/henrikrydgard/libnative/NativeActivity.java +++ b/android/src/com/henrikrydgard/libnative/NativeActivity.java @@ -356,7 +356,7 @@ public class NativeActivity extends Activity { return inputPlayerB; } - return null; + return inputPlayerA; } // We grab the keys before onKeyDown/... even see them. This is also better because it lets us