el carrusel ara es mou amb esquerra i dreta en lloc de amb amunt i avall

This commit is contained in:
2025-10-01 17:13:52 +02:00
parent 5db43e674d
commit 6985569573
2 changed files with 6 additions and 6 deletions

View File

@@ -134,10 +134,10 @@ void Player::setInputEnteringName(Input::Action action) {
case Input::Action::FIRE_CENTER: case Input::Action::FIRE_CENTER:
enter_name_->removeLastCharacter(); enter_name_->removeLastCharacter();
break; break;
case Input::Action::UP: case Input::Action::RIGHT:
enter_name_->incIndex(); enter_name_->incIndex();
break; break;
case Input::Action::DOWN: case Input::Action::LEFT:
enter_name_->decIndex(); enter_name_->decIndex();
break; break;
case Input::Action::START: case Input::Action::START:

View File

@@ -1451,14 +1451,14 @@ void Game::handleNameInput(const std::shared_ptr<Player>& player) {
return; return;
} }
if (input_->checkAction(Input::Action::UP, Input::DO_NOT_ALLOW_REPEAT, player->getUsesKeyboard(), player->getGamepad())) { if (input_->checkAction(Input::Action::LEFT, Input::DO_NOT_ALLOW_REPEAT, player->getUsesKeyboard(), player->getGamepad())) {
player->setInput(Input::Action::UP); player->setInput(Input::Action::LEFT);
playSound("service_menu_move.wav"); playSound("service_menu_move.wav");
return; return;
} }
if (input_->checkAction(Input::Action::DOWN, Input::DO_NOT_ALLOW_REPEAT, player->getUsesKeyboard(), player->getGamepad())) { if (input_->checkAction(Input::Action::RIGHT, Input::DO_NOT_ALLOW_REPEAT, player->getUsesKeyboard(), player->getGamepad())) {
player->setInput(Input::Action::DOWN); player->setInput(Input::Action::RIGHT);
playSound("service_menu_move.wav"); playSound("service_menu_move.wav");
return; return;
} }