remap-redux: allow the menu to display manual keybinds

This commit is contained in:
radius 2018-04-08 14:48:11 -05:00
parent 1dd73f86b7
commit 968c692a04
3 changed files with 4 additions and 3 deletions

View File

@ -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 = "?";

View File

@ -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;

View File

@ -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, "",