Create input_get_bind_map_base

This commit is contained in:
twinaphex 2015-11-28 00:44:34 +01:00
parent 222b9a2113
commit 1f5b121505
3 changed files with 11 additions and 3 deletions

View File

@ -116,6 +116,14 @@ const struct input_bind_map input_config_bind_map[RARCH_BIND_LIST_END_NULL] = {
#endif
};
const char *input_bind_map_get_base(const void *data)
{
const struct input_bind_map* keybind = (const struct input_bind_map*)data;
if (!keybind)
return NULL;
return keybind->base;
}
/**
* input_translate_coord_viewport:
* @mouse_x : Pointer X coordinate.

View File

@ -40,6 +40,8 @@ struct input_bind_map
extern const struct input_bind_map input_config_bind_map[];
const char *input_bind_map_get_base(const void *data);
/**
* input_translate_coord_viewport:
* @mouse_x : Pointer X coordinate.

View File

@ -2623,10 +2623,8 @@ int menu_displaylist_push_list(menu_displaylist_info_t *info, unsigned type)
for (i = 0; i < RARCH_BIND_LIST_END; i++)
{
const struct input_bind_map* keybind = (const struct input_bind_map*)
&input_config_bind_map[i];
ret = menu_displaylist_parse_settings(menu, info,
keybind->base, PARSE_ONLY_BIND, false);
input_bind_map_get_base(&input_config_bind_map[i]), PARSE_ONLY_BIND, false);
(void)ret;
}
}