mirror of
https://github.com/libretro/RetroArch
synced 2025-03-01 16:13:40 +00:00
remap-redux: allow the menu to display manual keybinds
This commit is contained in:
parent
1dd73f86b7
commit
968c692a04
@ -2576,7 +2576,7 @@ static void input_config_get_bind_string_joykey(
|
||||
{
|
||||
if (bind->joykey_label &&
|
||||
!string_is_empty(bind->joykey_label) && label_show)
|
||||
snprintf(buf, size, "%s %s ", prefix, bind->joykey_label);
|
||||
snprintf(buf, size, "%s %s (hat)", prefix, bind->joykey_label);
|
||||
else
|
||||
{
|
||||
const char *dir = "?";
|
||||
|
@ -115,7 +115,7 @@ bool input_remapping_load_file(void *data, const char *path)
|
||||
s3,
|
||||
key_strings[j]);
|
||||
|
||||
RARCH_LOG("pre_ident: %s:%d\n", stk_ident[j], settings->uints.input_remap_ids[i][j]);
|
||||
/* RARCH_LOG("pre_ident: %s:%d\n", stk_ident[j], settings->uints.input_remap_ids[i][j]); */
|
||||
|
||||
if (config_get_int(conf, stk_ident[j], &stk_remap) && stk_remap != -1)
|
||||
settings->uints.input_remap_ids[i][j] = stk_remap;
|
||||
|
@ -3271,7 +3271,8 @@ static int menu_displaylist_parse_options_remappings(
|
||||
const struct retro_keybind *keyptr =
|
||||
&input_config_binds[p][retro_id];
|
||||
|
||||
strlcpy(descriptor, msg_hash_to_str(keyptr->enum_idx), sizeof(descriptor));
|
||||
snprintf(desc_label, sizeof(desc_label), "%s %s", msg_hash_to_str(keyptr->enum_idx), descriptor);
|
||||
strlcpy(descriptor, desc_label, sizeof(descriptor));
|
||||
}
|
||||
|
||||
menu_entries_append_enum(info->list, descriptor, "",
|
||||
|
Loading…
x
Reference in New Issue
Block a user