Visualment, el carrusel ja salta al ultim caracter (instantani)
Si no hi ha lletres per a borrar, no fa roidet
This commit is contained in:
@@ -125,7 +125,7 @@ void Player::setInputPlaying(Input::Action action) {
|
||||
// Procesa inputs para cuando está introduciendo el nombre
|
||||
void Player::setInputEnteringName(Input::Action action) {
|
||||
switch (action) {
|
||||
case Input::Action::FIRE_LEFT:
|
||||
case Input::Action::FIRE_LEFT: // Añade una letra
|
||||
if (isShowingName()) {
|
||||
passShowingName();
|
||||
} else {
|
||||
@@ -139,12 +139,14 @@ void Player::setInputEnteringName(Input::Action action) {
|
||||
}
|
||||
}
|
||||
break;
|
||||
case Input::Action::FIRE_CENTER:
|
||||
case Input::Action::FIRE_CENTER: // Borra una letra
|
||||
if (isShowingName()) {
|
||||
passShowingName();
|
||||
} else {
|
||||
enter_name_->removeLastCharacter();
|
||||
playSound("service_menu_back.wav");
|
||||
if (!enter_name_->nameIsEmpty()) {
|
||||
enter_name_->removeLastCharacter();
|
||||
playSound("service_menu_back.wav");
|
||||
}
|
||||
}
|
||||
break;
|
||||
case Input::Action::RIGHT:
|
||||
|
||||
Reference in New Issue
Block a user