Varios arreglos
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
#include "title.h"
|
||||
#include <SDL2/SDL_events.h> // Para SDL_PollEvent, SDL_Event, SDL_KEYDOWN
|
||||
#include <SDL2/SDL_keycode.h> // Para SDLK_1, SDLK_2, SDLK_3
|
||||
#include <SDL2/SDL_keycode.h> // Para SDLK_1, SDLK_2, SDLK_3, SDLK_4, SDLK_5
|
||||
#include <SDL2/SDL_rect.h> // Para SDL_Rect
|
||||
#include <SDL2/SDL_timer.h> // Para SDL_GetTicks
|
||||
#include <string> // Para char_traits, operator+, to_string, bas...
|
||||
#include <stddef.h> // Para size_t
|
||||
#include <string> // Para char_traits, operator+, basic_string
|
||||
#include <utility> // Para move
|
||||
#include <vector> // Para vector
|
||||
#include "define_buttons.h" // Para DefineButtons
|
||||
@@ -18,7 +19,7 @@
|
||||
#include "param.h" // Para Param, param, ParamGame, ParamTitle
|
||||
#include "resource.h" // Para Resource
|
||||
#include "screen.h" // Para Screen
|
||||
#include "section.h" // Para Options, options, name, Name
|
||||
#include "section.h" // Para Options, options, Name, name, AttractMode
|
||||
#include "sprite.h" // Para Sprite
|
||||
#include "text.h" // Para Text, TEXT_CENTER, TEXT_SHADOW
|
||||
#include "texture.h" // Para Texture
|
||||
@@ -216,15 +217,15 @@ void Title::checkEvents()
|
||||
resetCounter();
|
||||
break;
|
||||
}
|
||||
case SDLK_4: // Muestra la asignacion de mandos
|
||||
case SDLK_4: // Intercambia la asignación del teclado
|
||||
{
|
||||
showControllers();
|
||||
swapKeyboard();
|
||||
resetCounter();
|
||||
break;
|
||||
}
|
||||
case SDLK_5: // Intercambia la asignación del teclado
|
||||
case SDLK_5: // Muestra la asignacion de mandos y teclado
|
||||
{
|
||||
swapKeyboard();
|
||||
showControllers();
|
||||
resetCounter();
|
||||
break;
|
||||
}
|
||||
@@ -343,5 +344,7 @@ void Title::showControllers()
|
||||
}
|
||||
}
|
||||
|
||||
// std::string spaces(lang::getText(100).length() + 3, ' ');
|
||||
// std::string kb_text = spaces + lang::getText(69);
|
||||
Notifier::get()->showText({text.at(0), text.at(1)});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user