ソースを参照

Wrap around menus with Select button

master
Nathaniel Walizer 11ヶ月前
コミット
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;
}
}
}


読み込み中…
キャンセル
保存