mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 12:32:52 +00:00
(Android) Get rid of Saitek Rumble code - moved to autoconfig
This commit is contained in:
parent
1effecdb86
commit
95093580e6
@ -465,7 +465,7 @@ static void handle_hotplug(android_input_t *android, struct android_app *android
|
||||
else if (strstr(device_name, "Smartjoy Family Super Smartjoy 2"))
|
||||
strlcpy(name_buf, "Super Smartjoy 2", sizeof(name_buf));
|
||||
else if (strstr(device_name, "Jess Tech Dual Analog Rumble Pad"))
|
||||
device = DEVICE_SAITEK_RUMBLE_P480;
|
||||
strlcpy(name_buf, device_name, sizeof(name_buf));
|
||||
else if (strstr(device_name, "mtk-kpd"))
|
||||
strlcpy(name_buf, "MUCH iReadyGo i5", sizeof(name_buf));
|
||||
else if (strstr(device_name, "Wikipad"))
|
||||
|
@ -97,24 +97,6 @@ static void android_input_set_keybinds(void *data, unsigned device,
|
||||
android->keycode_lut[102] |= ((RETRO_DEVICE_ID_JOYPAD_L+1) << shift);
|
||||
android->keycode_lut[103] |= ((RETRO_DEVICE_ID_JOYPAD_R+1) << shift);
|
||||
break;
|
||||
case DEVICE_SAITEK_RUMBLE_P480:
|
||||
g_settings.input.device[port] = device;
|
||||
strlcpy(g_settings.input.device_names[port], "Saitek Rumble P480",
|
||||
sizeof(g_settings.input.device_names[port]));
|
||||
|
||||
android->keycode_lut[190] |= ((RETRO_DEVICE_ID_JOYPAD_B+1) << shift);
|
||||
android->keycode_lut[188] |= ((RETRO_DEVICE_ID_JOYPAD_Y+1) << shift);
|
||||
android->keycode_lut[196] |= ((RETRO_DEVICE_ID_JOYPAD_SELECT+1) << shift);
|
||||
android->keycode_lut[197] |= ((RETRO_DEVICE_ID_JOYPAD_START+1) << shift);
|
||||
android->keycode_lut[191] |= ((RETRO_DEVICE_ID_JOYPAD_A+1) << shift);
|
||||
android->keycode_lut[189] |= ((RETRO_DEVICE_ID_JOYPAD_X+1) << shift);
|
||||
android->keycode_lut[192] |= ((RETRO_DEVICE_ID_JOYPAD_L+1) << shift);
|
||||
android->keycode_lut[194] |= ((RETRO_DEVICE_ID_JOYPAD_R+1) << shift);
|
||||
android->keycode_lut[193] |= ((RETRO_DEVICE_ID_JOYPAD_L2+1) << shift);
|
||||
android->keycode_lut[195] |= ((RETRO_DEVICE_ID_JOYPAD_R2+1) << shift);
|
||||
android->keycode_lut[198] |= ((RETRO_DEVICE_ID_JOYPAD_L3+1) << shift);
|
||||
android->keycode_lut[199] |= ((RETRO_DEVICE_ID_JOYPAD_R3+1) << shift);
|
||||
break;
|
||||
case DEVICE_KEYBOARD_RETROPAD:
|
||||
g_settings.input.device[port] = device;
|
||||
strlcpy(g_settings.input.device_names[port], "Generic Keyboard",
|
||||
|
Loading…
x
Reference in New Issue
Block a user