Przeglądaj źródła

Wrap around menus with Select button

master
Nathaniel Walizer 11 miesięcy temu
rodzic
commit
eac96c54f5
1 zmienionych plików z 3 dodań i 0 usunięć
  1. +3
    -0
      src/menu.c

+ 3
- 0
src/menu.c Wyświetl plik

@@ -206,6 +206,9 @@ static int run_menu(menu_state* state, const file_list* files,
(1 << Button_Select) )) {
if (menu.cursor < (files->count - 1)) {
++menu.cursor;
} else if (buttons & (1 << Button_Select)) {
// Wrap around on Select
menu.cursor = 0;
}
}
}


Ładowanie…
Anuluj
Zapisz