remap-redux part2: add empty description to analogs that are currently not remappable

This commit is contained in:
radius 2018-04-02 21:47:10 -05:00
parent 058b4cea79
commit 59da4b880e
2 changed files with 5 additions and 1 deletions

View File

@ -580,7 +580,6 @@ static void menu_action_setting_disp_set_label_input_desc(
*w = 19;
strlcpy(s2, path, len2);
}
#ifdef HAVE_KEYMAPPER

View File

@ -155,6 +155,11 @@ int action_right_input_desc(unsigned type, const char *label,
user_idx = (type - MENU_SETTINGS_INPUT_DESC_BEGIN) / (RARCH_FIRST_CUSTOM_BIND + 8);
btn_idx = (type - MENU_SETTINGS_INPUT_DESC_BEGIN) - (RARCH_FIRST_CUSTOM_BIND + 8) * user_idx;
#if 1
for (int i = 0; i < RARCH_FIRST_CUSTOM_BIND; i++)
RARCH_LOG("[remap-debug]: user %d button %d new id %d\n", user_idx, i, settings->uints.input_remap_ids[user_idx][i]);
#endif
if (settings->uints.input_remap_ids[user_idx][btn_idx] < RARCH_FIRST_CUSTOM_BIND)
settings->uints.input_remap_ids[user_idx][btn_idx]++;