From 71fe22f8baf8373ff1969d5d286546b5fff9265c Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 31 Dec 2012 04:19:45 +0100 Subject: [PATCH] (Android) Add some more alternative name detection rules for PS3 pad --- android/native/jni/input_android.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/android/native/jni/input_android.c b/android/native/jni/input_android.c index e397c47c8c..64a38c326a 100644 --- a/android/native/jni/input_android.c +++ b/android/native/jni/input_android.c @@ -253,7 +253,8 @@ static void setup_keycode_lut(unsigned port, unsigned id) keycode_lut[AKEYCODE_BUTTON_11] |= ((RETRO_DEVICE_ID_JOYPAD_L3+1) << shift); keycode_lut[AKEYCODE_BUTTON_12] |= ((RETRO_DEVICE_ID_JOYPAD_R3+1) << shift); } - else if (strstr(name_buf, "PLAYSTATION(R)3")) + else if (strstr(name_buf, "PLAYSTATION(R)3") || strstr(name_buf, "Dualshock3") + || strstr(name_buf,"Sixaxis")) { snprintf(msg, sizeof(msg), "RetroPad #%d is: DualShock3/Sixaxis.\n", port); g_settings.input.dpad_emulation[port] = DPAD_EMULATION_NONE;