(Android) Xperia Play controls finally work

This commit is contained in:
twinaphex 2013-02-03 22:43:18 +01:00
parent 526d9af5c2
commit 71473dad51
1 changed files with 2 additions and 2 deletions

View File

@ -125,7 +125,7 @@ void input_autodetect_setup (void *data, char *msg, size_t sizeof_msg, unsigned
input_autodetect_get_device_name(android_app, name_buf, sizeof(name_buf), id);
RARCH_LOG("device name: %s\n", name_buf);
if (strstr(name_buf, "keypad-game-zeus") || strstr(name_buf, "game-zeus"))
if (strstr(name_buf, "keypad-game-zeus") || strstr(name_buf, "keypad-zeus"))
{
if (zeus_id < 0)
{
@ -530,7 +530,7 @@ void input_autodetect_setup (void *data, char *msg, size_t sizeof_msg, unsigned
keycode_lut[AKEYCODE_BUTTON_L1] |= ((RETRO_DEVICE_ID_JOYPAD_L+1) << shift);
keycode_lut[AKEYCODE_BUTTON_R1] |= ((RETRO_DEVICE_ID_JOYPAD_R+1) << shift);
}
else if (strstr(name_buf, "game-zeus") || (strstr(name_buf, "keypad-game-zeus")))
else if (strstr(name_buf, "keypad-zeus") || (strstr(name_buf, "keypad-game-zeus")))
{
/* Xperia Play */
/* X/o/square/triangle/R1/L1/D-pad */