style: ja pots mouret pel carrusel de posar nom mantenint la direccio apretada (ja no vas lletra a lletra)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user