mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
(Android) Zeemote Steelseries moved to autoconfig
This commit is contained in:
parent
61bdfc8719
commit
3c2aed9564
@ -473,7 +473,7 @@ static void handle_hotplug(android_input_t *android, struct android_app *android
|
||||
strlcpy(name_buf, "iControlpad SPP mode (using Bluez IME)", sizeof(name_buf));
|
||||
|
||||
if (source == AINPUT_SOURCE_KEYBOARD && strcmp(name_buf, "Xperia Play"))
|
||||
strlcpy(name_buf, "RetroKeyboard RetroPad", sizeof(name_buf));
|
||||
strlcpy(name_buf, "RetroKeyboard", sizeof(name_buf));
|
||||
|
||||
if (name_buf[0] != '\0')
|
||||
{
|
||||
|
@ -18,23 +18,9 @@ static void android_input_set_keybinds(void *data, unsigned device,
|
||||
|
||||
switch (device)
|
||||
{
|
||||
case DEVICE_ZEEMOTE_STEELSERIES:
|
||||
g_settings.input.device[port] = device;
|
||||
strlcpy(g_settings.input.device_names[port], "Zeemote Steelseries",
|
||||
sizeof(g_settings.input.device_names[port]));
|
||||
|
||||
android->keycode_lut[96] |= ((RETRO_DEVICE_ID_JOYPAD_B+1) << shift);
|
||||
android->keycode_lut[97] |= ((RETRO_DEVICE_ID_JOYPAD_A+1) << shift);
|
||||
android->keycode_lut[100] |= ((RETRO_DEVICE_ID_JOYPAD_X+1) << shift);
|
||||
android->keycode_lut[99] |= ((RETRO_DEVICE_ID_JOYPAD_Y+1) << shift);
|
||||
android->keycode_lut[110] |= ((RETRO_DEVICE_ID_JOYPAD_SELECT+1) << shift);
|
||||
android->keycode_lut[108] |= ((RETRO_DEVICE_ID_JOYPAD_START+1) << shift);
|
||||
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_KEYBOARD_RETROPAD:
|
||||
g_settings.input.device[port] = device;
|
||||
strlcpy(g_settings.input.device_names[port], "Generic Keyboard",
|
||||
strlcpy(g_settings.input.device_names[port], "RetroKeyboard",
|
||||
sizeof(g_settings.input.device_names[port]));
|
||||
|
||||
// Keyboard
|
||||
|
Loading…
x
Reference in New Issue
Block a user