Afegit estat pre-logo per a poder fer reset mes millor

This commit is contained in:
2024-09-26 22:50:46 +02:00
parent 05e3fddb8f
commit 5ca4ee0bb8
4 changed files with 23 additions and 2 deletions

View File

@@ -111,6 +111,14 @@ void Logo::checkInput()
return;
}
// Comprueba si se va a resetear el juego
if (input->checkInput(input_reset, INPUT_DO_NOT_ALLOW_REPEAT, INPUT_USE_KEYBOARD))
{
section->name = SECTION_PROG_INIT;
screen->showNotification("Reset");
return;
}
// Comprueba si se ha pulsado cualquier botón (de los usados para jugar)
if (input->checkAnyButtonPressed())
{
@@ -129,6 +137,14 @@ void Logo::checkInput()
return;
}
// Comprueba si se va a resetear el juego
if (input->checkModInput(input_service, input_reset, INPUT_DO_NOT_ALLOW_REPEAT, INPUT_USE_GAMECONTROLLER, i))
{
section->name = SECTION_PROG_INIT;
screen->showNotification("Reset");
return;
}
// Comprueba si se va a activar o desactivar el audio
if (input->checkModInput(input_service, input_mute, INPUT_DO_NOT_ALLOW_REPEAT, INPUT_USE_GAMECONTROLLER, i))
{