fix: en TITLE, la consola no bloquejava la pulsacio del 1 al 4 i entrava a les opcions
This commit is contained in:
@@ -18,6 +18,7 @@
|
|||||||
#include "game/gameplay/cheevos.hpp" // Para Cheevos, Achievement
|
#include "game/gameplay/cheevos.hpp" // Para Cheevos, Achievement
|
||||||
#include "game/options.hpp" // Para Options, options, SectionState, Section
|
#include "game/options.hpp" // Para Options, options, SectionState, Section
|
||||||
#include "game/scene_manager.hpp" // Para SceneManager
|
#include "game/scene_manager.hpp" // Para SceneManager
|
||||||
|
#include "game/ui/console.hpp" // Para Console
|
||||||
#include "utils/defines.hpp" // Para PlayArea::CENTER_X, GameCanvas::WIDTH
|
#include "utils/defines.hpp" // Para PlayArea::CENTER_X, GameCanvas::WIDTH
|
||||||
#include "utils/utils.hpp" // Para stringToColor, PaletteColor, playMusic
|
#include "utils/utils.hpp" // Para stringToColor, PaletteColor, playMusic
|
||||||
|
|
||||||
@@ -93,7 +94,7 @@ void Title::handleEvents() {
|
|||||||
continue; // No procesar más este evento
|
continue; // No procesar más este evento
|
||||||
}
|
}
|
||||||
|
|
||||||
if (event.type == SDL_EVENT_KEY_DOWN) {
|
if (event.type == SDL_EVENT_KEY_DOWN && !Console::get()->isActive()) {
|
||||||
// Si estamos en modo remap de teclado, capturar tecla
|
// Si estamos en modo remap de teclado, capturar tecla
|
||||||
if (is_remapping_keyboard_ && !remap_completed_) {
|
if (is_remapping_keyboard_ && !remap_completed_) {
|
||||||
handleKeyboardRemap(event);
|
handleKeyboardRemap(event);
|
||||||
|
|||||||
Reference in New Issue
Block a user