mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-28 02:30:35 +00:00
fix the back as menu toggle option, autoconf was returning false even when a controller was succesfully configured...
This commit is contained in:
parent
cc3b1fd49f
commit
638db98e7d
@ -729,7 +729,7 @@ static void handle_hotplug(android_input_t *android,
|
||||
|
||||
if (settings->input.autodetect_enable)
|
||||
{
|
||||
unsigned autoconfigured = false;
|
||||
bool autoconfigured = false;
|
||||
autoconfig_params_t params = {{0}};
|
||||
|
||||
RARCH_LOG("Port %d: %s VID/PID: %d/%d\n", *port, name_buf, params.vid, params.pid);
|
||||
@ -743,7 +743,6 @@ static void handle_hotplug(android_input_t *android,
|
||||
|
||||
strlcpy(params.driver, android_joypad.ident, sizeof(params.driver));
|
||||
autoconfigured = input_config_autoconfigure_joypad(¶ms);
|
||||
|
||||
if (autoconfigured)
|
||||
{
|
||||
if (settings->input.autoconf_binds[*port][RARCH_MENU_TOGGLE].joykey != 0)
|
||||
|
@ -227,6 +227,7 @@ static bool input_autoconfigure_joypad_from_conf_dir(
|
||||
conf = config_file_new(list->elems[index].data);
|
||||
input_autoconfigure_joypad_add(conf, params);
|
||||
config_file_free(conf);
|
||||
ret = 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user