el carrusel ara es mou amb esquerra i dreta en lloc de amb amunt i avall
This commit is contained in:
@@ -134,10 +134,10 @@ void Player::setInputEnteringName(Input::Action action) {
|
||||
case Input::Action::FIRE_CENTER:
|
||||
enter_name_->removeLastCharacter();
|
||||
break;
|
||||
case Input::Action::UP:
|
||||
case Input::Action::RIGHT:
|
||||
enter_name_->incIndex();
|
||||
break;
|
||||
case Input::Action::DOWN:
|
||||
case Input::Action::LEFT:
|
||||
enter_name_->decIndex();
|
||||
break;
|
||||
case Input::Action::START:
|
||||
|
||||
@@ -1451,14 +1451,14 @@ void Game::handleNameInput(const std::shared_ptr<Player>& player) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (input_->checkAction(Input::Action::UP, Input::DO_NOT_ALLOW_REPEAT, player->getUsesKeyboard(), player->getGamepad())) {
|
||||
player->setInput(Input::Action::UP);
|
||||
if (input_->checkAction(Input::Action::LEFT, Input::DO_NOT_ALLOW_REPEAT, player->getUsesKeyboard(), player->getGamepad())) {
|
||||
player->setInput(Input::Action::LEFT);
|
||||
playSound("service_menu_move.wav");
|
||||
return;
|
||||
}
|
||||
|
||||
if (input_->checkAction(Input::Action::DOWN, Input::DO_NOT_ALLOW_REPEAT, player->getUsesKeyboard(), player->getGamepad())) {
|
||||
player->setInput(Input::Action::DOWN);
|
||||
if (input_->checkAction(Input::Action::RIGHT, Input::DO_NOT_ALLOW_REPEAT, player->getUsesKeyboard(), player->getGamepad())) {
|
||||
player->setInput(Input::Action::RIGHT);
|
||||
playSound("service_menu_move.wav");
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user