Apanyats alguns bugs que quedaven respecte a lo del teclat
This commit is contained in:
@@ -173,7 +173,7 @@ void Title::checkEvents()
|
||||
{
|
||||
// Comprueba el input para el resto de objetos
|
||||
define_buttons_->checkEvents();
|
||||
|
||||
|
||||
// Si define_buttons_ está habilitado, es él quien gestiona los eventos
|
||||
if (!define_buttons_->isEnabled())
|
||||
{
|
||||
@@ -213,16 +213,19 @@ void Title::checkEvents()
|
||||
case SDLK_3: // Intercambia los mandos entre los dos jugadores
|
||||
{
|
||||
swapControllers();
|
||||
resetCounter();
|
||||
break;
|
||||
}
|
||||
case SDLK_4: // Muestra la asignacion de mandos
|
||||
{
|
||||
showControllers();
|
||||
resetCounter();
|
||||
break;
|
||||
}
|
||||
case SDLK_5: // Intercambia la asignación del teclado
|
||||
{
|
||||
swapKeyboard();
|
||||
resetCounter();
|
||||
break;
|
||||
}
|
||||
default:
|
||||
@@ -311,7 +314,8 @@ void Title::swapControllers()
|
||||
void Title::swapKeyboard()
|
||||
{
|
||||
swapOptionsKeyboard();
|
||||
Notifier::get()->showText("Teclat per al jugador " + std::to_string(getPlayerWhoUsesKeyboard()));
|
||||
std::string text = lang::getText(100) + std::to_string(getPlayerWhoUsesKeyboard()) + ": " + lang::getText(69);
|
||||
Notifier::get()->showText(text);
|
||||
}
|
||||
|
||||
// Muestra información sobre los controles y los jugadores
|
||||
@@ -340,5 +344,4 @@ void Title::showControllers()
|
||||
}
|
||||
|
||||
Notifier::get()->showText(text.at(0), text.at(1));
|
||||
resetCounter();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user