mirror of
https://github.com/libretro/RetroArch
synced 2025-04-16 08:43:10 +00:00
(Android) Add Defender Game Racer Classic to autodetection list
This commit is contained in:
parent
2fcc99a4f9
commit
713b3fc64e
@ -1307,6 +1307,22 @@ static void android_input_set_keybinds(void *data, unsigned device,
|
|||||||
keycode_lut[AKEYCODE_BUTTON_L2]|= ((RETRO_DEVICE_ID_JOYPAD_L2+1) << shift);
|
keycode_lut[AKEYCODE_BUTTON_L2]|= ((RETRO_DEVICE_ID_JOYPAD_L2+1) << shift);
|
||||||
keycode_lut[AKEYCODE_BUTTON_R1]|= ((RETRO_DEVICE_ID_JOYPAD_R2+1) << shift);
|
keycode_lut[AKEYCODE_BUTTON_R1]|= ((RETRO_DEVICE_ID_JOYPAD_R2+1) << shift);
|
||||||
break;
|
break;
|
||||||
|
case DEVICE_DEFENDER_GAME_RACER_CLASSIC:
|
||||||
|
g_settings.input.device[port] = device;
|
||||||
|
strlcpy(g_settings.input.device_names[port], "Defender Game Racer Classic",
|
||||||
|
sizeof(g_settings.input.device_names[port]));
|
||||||
|
|
||||||
|
keycode_lut[AKEYCODE_BUTTON_10]|= ((RETRO_DEVICE_ID_JOYPAD_START+1) << shift);
|
||||||
|
keycode_lut[AKEYCODE_BUTTON_1]|= ((RETRO_DEVICE_ID_JOYPAD_B+1) << shift);
|
||||||
|
keycode_lut[AKEYCODE_BUTTON_2]|= ((RETRO_DEVICE_ID_JOYPAD_A+1) << shift);
|
||||||
|
keycode_lut[AKEYCODE_BUTTON_3]|= ((RETRO_DEVICE_ID_JOYPAD_R2+1) << shift);
|
||||||
|
keycode_lut[AKEYCODE_BUTTON_4]|= ((RETRO_DEVICE_ID_JOYPAD_Y+1) << shift);
|
||||||
|
keycode_lut[AKEYCODE_BUTTON_5]|= ((RETRO_DEVICE_ID_JOYPAD_X+1) << shift);
|
||||||
|
keycode_lut[AKEYCODE_BUTTON_6]|= ((RETRO_DEVICE_ID_JOYPAD_L2+1) << shift);
|
||||||
|
keycode_lut[AKEYCODE_BUTTON_7]|= ((RETRO_DEVICE_ID_JOYPAD_L+1) << shift);
|
||||||
|
keycode_lut[AKEYCODE_BUTTON_8]|= ((RETRO_DEVICE_ID_JOYPAD_R+1) << shift);
|
||||||
|
keycode_lut[AKEYCODE_BUTTON_9]|= ((RETRO_DEVICE_ID_JOYPAD_SELECT+1) << shift);
|
||||||
|
break;
|
||||||
case DEVICE_MOGA_IME:
|
case DEVICE_MOGA_IME:
|
||||||
g_settings.input.device[port] = device;
|
g_settings.input.device[port] = device;
|
||||||
strlcpy(g_settings.input.device_names[port], "Moga IME",
|
strlcpy(g_settings.input.device_names[port], "Moga IME",
|
||||||
|
@ -197,6 +197,8 @@ void input_autodetect_setup (void *data, char *msg, size_t sizeof_msg, unsigned
|
|||||||
device = DEVICE_TOMEE_NES_USB;
|
device = DEVICE_TOMEE_NES_USB;
|
||||||
else if (strstr(name_buf, "rk29-keypad") || strstr(name_buf, "GAMEMID"))
|
else if (strstr(name_buf, "rk29-keypad") || strstr(name_buf, "GAMEMID"))
|
||||||
device = DEVICE_GAMEMID;
|
device = DEVICE_GAMEMID;
|
||||||
|
else if (strstr(name_buf, "USB Gamepad"))
|
||||||
|
device = DEVICE_DEFENDER_GAME_RACER_CLASSIC;
|
||||||
|
|
||||||
if (strstr(current_ime, "net.obsidianx.android.mogaime"))
|
if (strstr(current_ime, "net.obsidianx.android.mogaime"))
|
||||||
{
|
{
|
||||||
|
1
driver.h
1
driver.h
@ -265,6 +265,7 @@ enum input_devices
|
|||||||
DEVICE_TOMEE_NES_USB,
|
DEVICE_TOMEE_NES_USB,
|
||||||
DEVICE_THRUSTMASTER_T_MINI,
|
DEVICE_THRUSTMASTER_T_MINI,
|
||||||
DEVICE_GAMEMID,
|
DEVICE_GAMEMID,
|
||||||
|
DEVICE_DEFENDER_GAME_RACER_CLASSIC,
|
||||||
#elif defined(GEKKO)
|
#elif defined(GEKKO)
|
||||||
DEVICE_GAMECUBE = 0,
|
DEVICE_GAMECUBE = 0,
|
||||||
#ifdef HW_RVL
|
#ifdef HW_RVL
|
||||||
|
Loading…
x
Reference in New Issue
Block a user