Afegit globalInputs::update() a totes les seccions del programa
This commit is contained in:
@@ -869,6 +869,7 @@ void Game::update()
|
|||||||
|
|
||||||
checkMusicStatus();
|
checkMusicStatus();
|
||||||
screen_->update();
|
screen_->update();
|
||||||
|
globalInputs::update();
|
||||||
fillCanvas();
|
fillCanvas();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -251,7 +251,7 @@ namespace globalInputs
|
|||||||
if (service_pressed)
|
if (service_pressed)
|
||||||
{
|
{
|
||||||
++service_pressed_counter;
|
++service_pressed_counter;
|
||||||
if (service_pressed_counter >= 3000)
|
if (service_pressed_counter >= 200)
|
||||||
{
|
{
|
||||||
OnScreenHelp::get()->toggleState();
|
OnScreenHelp::get()->toggleState();
|
||||||
service_pressed_counter = 0;
|
service_pressed_counter = 0;
|
||||||
|
|||||||
@@ -77,6 +77,9 @@ void HiScoreTable::update()
|
|||||||
// Actualiza el objeto screen
|
// Actualiza el objeto screen
|
||||||
Screen::get()->update();
|
Screen::get()->update();
|
||||||
|
|
||||||
|
// Actualiza las variables de globalInputs
|
||||||
|
globalInputs::update();
|
||||||
|
|
||||||
// Actualiza el fondo
|
// Actualiza el fondo
|
||||||
background_->update();
|
background_->update();
|
||||||
|
|
||||||
|
|||||||
@@ -216,6 +216,9 @@ void Instructions::update()
|
|||||||
// Actualiza el objeto screen
|
// Actualiza el objeto screen
|
||||||
Screen::get()->update();
|
Screen::get()->update();
|
||||||
|
|
||||||
|
// Actualiza las variables de globalInputs
|
||||||
|
globalInputs::update();
|
||||||
|
|
||||||
// Incrementa el contador
|
// Incrementa el contador
|
||||||
counter_++;
|
counter_++;
|
||||||
|
|
||||||
|
|||||||
@@ -382,6 +382,9 @@ void Intro::update()
|
|||||||
|
|
||||||
// Actualiza las escenas de la intro
|
// Actualiza las escenas de la intro
|
||||||
updateScenes();
|
updateScenes();
|
||||||
|
|
||||||
|
// Actualiza las variables de globalInputs
|
||||||
|
globalInputs::update();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -201,6 +201,9 @@ void Logo::update()
|
|||||||
{
|
{
|
||||||
section::name = section::Name::INTRO;
|
section::name = section::Name::INTRO;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Actualiza las variables de globalInputs
|
||||||
|
globalInputs::update();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ private:
|
|||||||
int fps_ = 0; // Frames calculados en el último segundo
|
int fps_ = 0; // Frames calculados en el último segundo
|
||||||
std::string info_resolution_; // Texto con la informacion de la pantalla
|
std::string info_resolution_; // Texto con la informacion de la pantalla
|
||||||
#ifdef DEBUG
|
#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
|
#else
|
||||||
bool show_info_ = false; // 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
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -69,7 +69,10 @@ void Title::update()
|
|||||||
// Actualiza el objeto screen
|
// Actualiza el objeto screen
|
||||||
Screen::get()->update();
|
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();
|
fade_->update();
|
||||||
if (fade_->hasEnded())
|
if (fade_->hasEnded())
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user