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

@@ -254,6 +254,14 @@ void Title::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 el teclado para empezar a jugar
if (input->checkInput(input_start, INPUT_DO_NOT_ALLOW_REPEAT, INPUT_USE_KEYBOARD))
{