fix input labels empty on android

This commit is contained in:
radius 2015-12-12 20:56:42 -05:00
parent 7ec6a66f12
commit 4b082daa7e

View File

@ -832,10 +832,6 @@ static void handle_hotplug(android_input_data_t *android_data,
else if (strstr(android_app->current_ime, "com.hexad.bluezime"))
strlcpy(name_buf, android_app->current_ime, sizeof(name_buf));
if (name_buf[0] != '\0')
strlcpy(settings->input.device_names[*port],
name_buf, sizeof(settings->input.device_names[*port]));
if (*port < 0)
*port = android_data->pads_connected;
@ -863,6 +859,12 @@ static void handle_hotplug(android_input_data_t *android_data,
}
}
if (name_buf[0] != '\0')
{
strlcpy(settings->input.device_names[*port],
name_buf, sizeof(settings->input.device_names[*port]));
}
if (!back_mapped && settings->input.back_as_menu_toggle_enable)
settings->input.autoconf_binds[*port][RARCH_MENU_TOGGLE].joykey = AKEYCODE_BACK;