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;
|
section->name = SECTION_PROG_QUIT;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Solo se comprueban estas teclas si no está activo el menu de logros
|
||||||
if (eventHandler->type == SDL_KEYDOWN)
|
if (eventHandler->type == SDL_KEYDOWN)
|
||||||
|
{
|
||||||
|
if (!showCheevos)
|
||||||
{
|
{
|
||||||
switch (eventHandler->key.keysym.scancode)
|
switch (eventHandler->key.keysym.scancode)
|
||||||
{
|
{
|
||||||
@@ -149,7 +153,7 @@ void Title::checkEvents()
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case SDL_SCANCODE_2:
|
case SDL_SCANCODE_2:
|
||||||
if (!showCheevos)
|
|
||||||
showCheevos = true;
|
showCheevos = true;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@@ -162,6 +166,7 @@ void Title::checkEvents()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Comprueba las entradas
|
// Comprueba las entradas
|
||||||
@@ -217,10 +222,13 @@ void Title::checkInput()
|
|||||||
}
|
}
|
||||||
|
|
||||||
else if (input->checkInput(input_accept, REPEAT_FALSE) || input->checkInput(input_pause, REPEAT_FALSE))
|
else if (input->checkInput(input_accept, REPEAT_FALSE) || input->checkInput(input_pause, REPEAT_FALSE))
|
||||||
|
{
|
||||||
|
if (!showCheevos)
|
||||||
{
|
{
|
||||||
section->name = SECTION_PROG_GAME;
|
section->name = SECTION_PROG_GAME;
|
||||||
section->subsection = 0;
|
section->subsection = 0;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Actualiza la marquesina
|
// Actualiza la marquesina
|
||||||
|
|||||||
Reference in New Issue
Block a user