diff --git a/source/game.cpp b/source/game.cpp index 88d3dc1..bf20904 100644 --- a/source/game.cpp +++ b/source/game.cpp @@ -869,6 +869,7 @@ void Game::update() checkMusicStatus(); screen_->update(); + globalInputs::update(); fillCanvas(); } } diff --git a/source/global_inputs.cpp b/source/global_inputs.cpp index ade4516..a98b27e 100644 --- a/source/global_inputs.cpp +++ b/source/global_inputs.cpp @@ -251,7 +251,7 @@ namespace globalInputs if (service_pressed) { ++service_pressed_counter; - if (service_pressed_counter >= 3000) + if (service_pressed_counter >= 200) { OnScreenHelp::get()->toggleState(); service_pressed_counter = 0; diff --git a/source/hiscore_table.cpp b/source/hiscore_table.cpp index d974281..c6cc2b8 100644 --- a/source/hiscore_table.cpp +++ b/source/hiscore_table.cpp @@ -77,6 +77,9 @@ void HiScoreTable::update() // Actualiza el objeto screen Screen::get()->update(); + // Actualiza las variables de globalInputs + globalInputs::update(); + // Actualiza el fondo background_->update(); diff --git a/source/instructions.cpp b/source/instructions.cpp index cf2f754..b4baa73 100644 --- a/source/instructions.cpp +++ b/source/instructions.cpp @@ -216,6 +216,9 @@ void Instructions::update() // Actualiza el objeto screen Screen::get()->update(); + // Actualiza las variables de globalInputs + globalInputs::update(); + // Incrementa el contador counter_++; diff --git a/source/intro.cpp b/source/intro.cpp index 02e4ca5..fc92798 100644 --- a/source/intro.cpp +++ b/source/intro.cpp @@ -382,6 +382,9 @@ void Intro::update() // Actualiza las escenas de la intro updateScenes(); + + // Actualiza las variables de globalInputs + globalInputs::update(); } } diff --git a/source/logo.cpp b/source/logo.cpp index 9d12b48..d2565e9 100644 --- a/source/logo.cpp +++ b/source/logo.cpp @@ -201,6 +201,9 @@ void Logo::update() { section::name = section::Name::INTRO; } + + // Actualiza las variables de globalInputs + globalInputs::update(); } } diff --git a/source/screen.h b/source/screen.h index 1d320cb..fba9dcb 100644 --- a/source/screen.h +++ b/source/screen.h @@ -43,7 +43,7 @@ private: int fps_ = 0; // Frames calculados en el último segundo std::string info_resolution_; // Texto con la informacion de la pantalla #ifdef DEBUG - bool show_info_ = true; // Indica si ha de mostrar/ocultar la información de la pantalla + bool show_info_ = false; // Indica si ha de mostrar/ocultar la información de la pantalla #else bool show_info_ = false; // Indica si ha de mostrar/ocultar la información de la pantalla #endif diff --git a/source/title.cpp b/source/title.cpp index fce9503..2c6a9c6 100644 --- a/source/title.cpp +++ b/source/title.cpp @@ -69,7 +69,10 @@ void Title::update() // Actualiza el objeto screen Screen::get()->update(); - // Comprueba el fade_ y si se ha acabado + // Actualiza las variables de globalInputs + globalInputs::update(); + + // Comprueba el fundido y si se ha acabado fade_->update(); if (fade_->hasEnded()) {