From f838901f741efdfb5aca33f1f730c30f0fb3abc2 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 31 Dec 2012 23:19:30 +0100 Subject: [PATCH] (Android) Should fix L1 button on Sixaxis IME binds --- android/native/jni/input_autodetect.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/android/native/jni/input_autodetect.c b/android/native/jni/input_autodetect.c index 449d8d482b..01a42c0246 100644 --- a/android/native/jni/input_autodetect.c +++ b/android/native/jni/input_autodetect.c @@ -198,7 +198,7 @@ void input_autodetect_setup(unsigned port, unsigned id, int source) } goto do_exit; } - else if (strstr(current_ime, "com.dancingpixelstudios.sixaxiscontroller")) + else if (strstr(current_ime, "SixaxisIME")) { snprintf(msg, sizeof(msg), "RetroPad #%d is: SixAxis Bluetooth (IME).\n", port); snprintf(name_buf, sizeof(name_buf), "dancingpixelstudios.SixAxis"); @@ -207,7 +207,7 @@ void input_autodetect_setup(unsigned port, unsigned id, int source) keycode_lut[AKEYCODE_DPAD_DOWN] |= ((RETRO_DEVICE_ID_JOYPAD_DOWN+1) << shift); keycode_lut[AKEYCODE_DPAD_LEFT] |= ((RETRO_DEVICE_ID_JOYPAD_LEFT+1) << shift); keycode_lut[AKEYCODE_DPAD_RIGHT]|= ((RETRO_DEVICE_ID_JOYPAD_RIGHT+1) << shift); - keycode_lut[AKEYCODE_SOFT_LEFT] |= ((RETRO_DEVICE_ID_JOYPAD_L+1) << shift); + keycode_lut[AKEYCODE_4] |= ((RETRO_DEVICE_ID_JOYPAD_L+1) << shift); keycode_lut[AKEYCODE_5] |= ((RETRO_DEVICE_ID_JOYPAD_L2+1) << shift); keycode_lut[AKEYCODE_6] |= ((RETRO_DEVICE_ID_JOYPAD_R+1) << shift); keycode_lut[AKEYCODE_7] |= ((RETRO_DEVICE_ID_JOYPAD_R2+1) << shift);