mirror of
https://github.com/libretro/RetroArch
synced 2025-02-12 00:40:26 +00:00
(Menu/Settings) Represent input setting options with 'player' index prefix
This commit is contained in:
parent
9b149721dd
commit
4063f4adb1
@ -3838,15 +3838,23 @@ bool setting_data_append_list_input_options(
|
|||||||
|
|
||||||
for (i = 0; i < RARCH_BIND_LIST_END; i ++)
|
for (i = 0; i < RARCH_BIND_LIST_END; i ++)
|
||||||
{
|
{
|
||||||
|
char label[PATH_MAX];
|
||||||
const struct input_bind_map* bind =
|
const struct input_bind_map* bind =
|
||||||
(const struct input_bind_map*)&input_config_bind_map[i];
|
(const struct input_bind_map*)&input_config_bind_map[i];
|
||||||
|
|
||||||
if (!bind || bind->meta)
|
if (!bind || bind->meta)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
CONFIG_BIND(g_settings.input.binds[player][i], player + 1,
|
snprintf(label, sizeof(label), "%s %s", buffer, bind->desc);
|
||||||
bind->base, bind->desc, &defaults[i],
|
|
||||||
group_info.name, subgroup_info.name);
|
CONFIG_BIND(
|
||||||
|
g_settings.input.binds[player][i],
|
||||||
|
player + 1,
|
||||||
|
bind->base,
|
||||||
|
strdup(label),
|
||||||
|
&defaults[i],
|
||||||
|
group_info.name,
|
||||||
|
subgroup_info.name);
|
||||||
}
|
}
|
||||||
END_SUB_GROUP(list, list_info);
|
END_SUB_GROUP(list, list_info);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user