Explorar el Código

Wrap around menus with Select button

master
Nathaniel Walizer hace 11 meses
padre
commit
eac96c54f5
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. +3
    -0
      src/menu.c

+ 3
- 0
src/menu.c Ver fichero

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


Cargando…
Cancelar
Guardar