guardar partida pq ja estic fent canvis a cegues a vore si trac açò
This commit is contained in:
@@ -209,7 +209,7 @@ void Title::checkEvents()
|
||||
{
|
||||
// Si defineButtons está habilitado, es él quien gestiona los eventos
|
||||
if (!defineButtons->isEnabled())
|
||||
{
|
||||
{
|
||||
// Comprueba los eventos que hay en la cola
|
||||
while (SDL_PollEvent(eventHandler) != 0)
|
||||
{
|
||||
@@ -234,15 +234,6 @@ void Title::checkInput()
|
||||
// Comprueba los controladores solo si no se estan definiendo los botones
|
||||
if (!defineButtons->isEnabled())
|
||||
{
|
||||
// Comprueba todos los controladores para salir
|
||||
for (int i = 0; i < numControllers; ++i)
|
||||
{
|
||||
if (input->checkInput(input_exit, REPEAT_FALSE, options->game.input[i].deviceType, options->game.input[i].id))
|
||||
{
|
||||
section->name = SECTION_PROG_QUIT;
|
||||
}
|
||||
}
|
||||
|
||||
// Comprueba si se ha pulsado algún botón para empezar a jugar
|
||||
const int index = input->checkAnyButtonPressed();
|
||||
if (index)
|
||||
@@ -253,7 +244,7 @@ void Title::checkInput()
|
||||
}
|
||||
|
||||
// Comprueba el teclado para salir
|
||||
if (input->checkInput(input_exit, REPEAT_FALSE))
|
||||
if (input->checkInput(input_exit, DO_NOT_ALLOW_REPEAT))
|
||||
{
|
||||
section->name = SECTION_PROG_QUIT;
|
||||
}
|
||||
@@ -265,12 +256,12 @@ void Title::checkInput()
|
||||
|
||||
if (keyStates[SDL_SCANCODE_1] != 0)
|
||||
{
|
||||
defineButtons->enable(1);
|
||||
defineButtons->enable(0);
|
||||
}
|
||||
|
||||
else if (keyStates[SDL_SCANCODE_2] != 0)
|
||||
{
|
||||
defineButtons->enable(2);
|
||||
defineButtons->enable(1);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user