From ea421b4e174a17c033b080f5fccd5d081f81e03a Mon Sep 17 00:00:00 2001 From: Sergio Valor Date: Sat, 28 Mar 2026 13:31:20 +0100 Subject: [PATCH] fix: en TITLE, la consola no bloquejava la pulsacio del 1 al 4 i entrava a les opcions --- source/game/scenes/title.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/game/scenes/title.cpp b/source/game/scenes/title.cpp index 473f072..650cc33 100644 --- a/source/game/scenes/title.cpp +++ b/source/game/scenes/title.cpp @@ -18,6 +18,7 @@ #include "game/gameplay/cheevos.hpp" // Para Cheevos, Achievement #include "game/options.hpp" // Para Options, options, SectionState, Section #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/utils.hpp" // Para stringToColor, PaletteColor, playMusic @@ -93,7 +94,7 @@ void Title::handleEvents() { 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 if (is_remapping_keyboard_ && !remap_completed_) { handleKeyboardRemap(event);