style: ja pots mouret pel carrusel de posar nom mantenint la direccio apretada (ja no vas lletra a lletra)

This commit is contained in:
2025-10-22 19:55:02 +02:00
parent ce54b10abb
commit ef1a514c9b
3 changed files with 23 additions and 10 deletions

View File

@@ -1448,12 +1448,12 @@ void Game::handleNameInput(const std::shared_ptr<Player>& player) {
return;
}
if (input_->checkAction(Input::Action::LEFT, Input::DO_NOT_ALLOW_REPEAT, player->getUsesKeyboard(), player->getGamepad())) {
if (input_->checkAction(Input::Action::LEFT, Input::ALLOW_REPEAT, player->getUsesKeyboard(), player->getGamepad())) {
player->setInput(Input::Action::LEFT);
return;
}
if (input_->checkAction(Input::Action::RIGHT, Input::DO_NOT_ALLOW_REPEAT, player->getUsesKeyboard(), player->getGamepad())) {
if (input_->checkAction(Input::Action::RIGHT, Input::ALLOW_REPEAT, player->getUsesKeyboard(), player->getGamepad())) {
player->setInput(Input::Action::RIGHT);
return;
}
@@ -1461,7 +1461,10 @@ void Game::handleNameInput(const std::shared_ptr<Player>& player) {
if (input_->checkAction(Input::Action::START, Input::DO_NOT_ALLOW_REPEAT, player->getUsesKeyboard(), player->getGamepad())) {
player->setInput(Input::Action::START);
updateHiScoreName();
return;
}
player->setInput(Input::Action::NONE);
}
// Inicializa las variables para el modo DEMO