mirror of
https://github.com/libretro/RetroArch
synced 2025-04-01 04:20:27 +00:00
Use menu_displaylist_push_list
This commit is contained in:
parent
e78d5f0034
commit
c33b7676c6
@ -370,6 +370,7 @@ static bool menu_input_custom_bind_keyboard_cb(void *data, unsigned code)
|
||||
static int menu_input_set_bind_mode_common(rarch_setting_t *setting,
|
||||
enum menu_input_bind_mode type)
|
||||
{
|
||||
menu_displaylist_info_t info = {0};
|
||||
struct retro_keybind *keybind = NULL;
|
||||
settings_t *settings = config_get_ptr();
|
||||
menu_handle_t *menu = menu_driver_get_ptr();
|
||||
@ -392,21 +393,26 @@ static int menu_input_set_bind_mode_common(rarch_setting_t *setting,
|
||||
menu->binds.last = setting->bind_type;
|
||||
menu->binds.target = keybind;
|
||||
menu->binds.user = setting->index_offset;
|
||||
menu_list_push( menu->menu_list->menu_stack,
|
||||
"", "custom_bind",
|
||||
MENU_SETTINGS_CUSTOM_BIND_KEYBOARD,
|
||||
nav->selection_ptr);
|
||||
|
||||
info.list = menu->menu_list->menu_stack;
|
||||
info.type = MENU_SETTINGS_CUSTOM_BIND_KEYBOARD;
|
||||
info.directory_ptr = nav->selection_ptr;
|
||||
strlcpy(info.label, "custom_bind", sizeof(info.label));
|
||||
|
||||
menu_displaylist_push_list(&info, DISPLAYLIST_SELECT);
|
||||
break;
|
||||
case MENU_INPUT_BIND_ALL:
|
||||
menu->binds.target = &settings->input.binds
|
||||
[setting->index_offset][0];
|
||||
menu->binds.begin = MENU_SETTINGS_BIND_BEGIN;
|
||||
menu->binds.last = MENU_SETTINGS_BIND_LAST;
|
||||
menu_list_push( menu->menu_list->menu_stack,
|
||||
"",
|
||||
"custom_bind_all",
|
||||
MENU_SETTINGS_CUSTOM_BIND_KEYBOARD,
|
||||
nav->selection_ptr);
|
||||
|
||||
info.list = menu->menu_list->menu_stack;
|
||||
info.type = MENU_SETTINGS_CUSTOM_BIND_KEYBOARD;
|
||||
info.directory_ptr = nav->selection_ptr;
|
||||
strlcpy(info.label, "custom_bind_all", sizeof(info.label));
|
||||
|
||||
menu_displaylist_push_list(&info, DISPLAYLIST_SELECT);
|
||||
break;
|
||||
}
|
||||
return 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user