input: use X button on gamepad in file browser to go to parent folder.

This commit is contained in:
sorgelig
2021-10-04 18:35:59 +08:00
parent 50d6d15da7
commit 2bac3df718
2 changed files with 12 additions and 3 deletions

View File

@@ -4398,11 +4398,12 @@ void HandleUI(void)
{
ScrollLongName(); // scrolls file name if longer than display line
if (c == KEY_HOME)
if (c == KEY_HOME || c == KEY_TAB)
{
filter_typing_timer = 0;
ScanDirectory(selPath, SCANF_INIT, fs_pFileExt, fs_Options);
menustate = MENU_FILE_SELECT1;
select = (c == KEY_TAB && flist_SelectedItem()->de.d_type == DT_DIR && !strcmp(flist_SelectedItem()->de.d_name, ".."));
}
if (c == KEY_END)