Просмотр исходного кода

Wrap around menus with Select button

master
Nathaniel Walizer 11 месяцев назад
Родитель
Сommit
eac96c54f5
1 измененных файлов: 3 добавлений и 0 удалений
  1. +3
    -0
      src/menu.c

+ 3
- 0
src/menu.c Просмотреть файл

@@ -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;
}
}
}


Загрузка…
Отмена
Сохранить