mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-02-06 19:46:06 +00:00
(RMenu) Have RMenu act exactly like RGUI - pressing Back in
LIBRETRO_CHOICE goes back to menu - you can now press left/right in History list
This commit is contained in:
parent
91f2d76fbe
commit
bc152410ef
@ -811,6 +811,9 @@ static int select_file(void *data, uint64_t action)
|
||||
}
|
||||
break;
|
||||
case RGUI_ACTION_CANCEL:
|
||||
if (rgui->menu_type == LIBRETRO_CHOICE)
|
||||
pop_menu_stack = true;
|
||||
else
|
||||
{
|
||||
char tmp_str[PATH_MAX];
|
||||
fill_pathname_parent_dir(tmp_str, rgui->browser->current_dir.directory_path, sizeof(tmp_str));
|
||||
@ -2613,6 +2616,15 @@ static int ingame_menu_history_options(void *data, uint64_t action)
|
||||
if (hist_opt_selected >= history_size)
|
||||
hist_opt_selected = 0;
|
||||
break;
|
||||
case RGUI_ACTION_LEFT:
|
||||
if (hist_opt_selected <= 5)
|
||||
hist_opt_selected = 0;
|
||||
else
|
||||
hist_opt_selected -= 5;
|
||||
break;
|
||||
case FILEBROWSER_ACTION_RIGHT:
|
||||
hist_opt_selected = (min(hist_opt_selected + 5, history_size-1));
|
||||
break;
|
||||
case RGUI_ACTION_CANCEL:
|
||||
menu_stack_pop(rgui->menu_type);
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user