fix: no estava comprobantse el reset amb el teclat

This commit is contained in:
2024-09-28 14:23:51 +02:00
parent 2767696a3f
commit 289d01b0fa
5 changed files with 40 additions and 0 deletions

View File

@@ -329,6 +329,14 @@ void Instructions::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::NAME_INIT;
screen->showNotification("Reset");
return;
}
// Comprueba si se ha pulsado cualquier botón (de los usados para jugar)
if (input->checkAnyButtonPressed())
{