forked from jaildesigner-jailgames/jaildoctors_dilemma
Las entradas de teclado del menu de titulo ya funcionan correctamente
This commit is contained in:
@@ -139,7 +139,11 @@ void Title::checkEvents()
|
||||
section->name = SECTION_PROG_QUIT;
|
||||
break;
|
||||
}
|
||||
|
||||
// Solo se comprueban estas teclas si no está activo el menu de logros
|
||||
if (eventHandler->type == SDL_KEYDOWN)
|
||||
{
|
||||
if (!showCheevos)
|
||||
{
|
||||
switch (eventHandler->key.keysym.scancode)
|
||||
{
|
||||
@@ -149,7 +153,7 @@ void Title::checkEvents()
|
||||
break;
|
||||
|
||||
case SDL_SCANCODE_2:
|
||||
if (!showCheevos)
|
||||
|
||||
showCheevos = true;
|
||||
break;
|
||||
|
||||
@@ -163,6 +167,7 @@ void Title::checkEvents()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Comprueba las entradas
|
||||
void Title::checkInput()
|
||||
@@ -217,11 +222,14 @@ void Title::checkInput()
|
||||
}
|
||||
|
||||
else if (input->checkInput(input_accept, REPEAT_FALSE) || input->checkInput(input_pause, REPEAT_FALSE))
|
||||
{
|
||||
if (!showCheevos)
|
||||
{
|
||||
section->name = SECTION_PROG_GAME;
|
||||
section->subsection = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Actualiza la marquesina
|
||||
void Title::updateMarquee()
|
||||
|
||||
Reference in New Issue
Block a user