Fix: En la secuencia del final, al pulsar ESC se cerraba el juego. Ahora vuelve al logo

This commit is contained in:
2022-12-29 15:26:02 +01:00
parent 48b8ae049a
commit 4c3c844ccf
4 changed files with 10 additions and 9 deletions

View File

@@ -82,7 +82,7 @@ void Logo::checkEventHandler()
}
// Comprueba las teclas que se han pulsado
if ((eventHandler->type == SDL_KEYUP && eventHandler->key.repeat == 0) || (eventHandler->type == SDL_JOYBUTTONUP))
if ((eventHandler->type == SDL_KEYDOWN && eventHandler->key.repeat == 0) || (eventHandler->type == SDL_JOYBUTTONUP))
{
switch (eventHandler->key.keysym.scancode)
{