mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 03:32:46 +00:00
Create input_get_bind_map_base
This commit is contained in:
parent
222b9a2113
commit
1f5b121505
@ -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.
|
||||
|
@ -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.
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user