- faltava propietat mirror

- al fer clic es tanca la consola
This commit is contained in:
2026-04-02 13:02:35 +02:00
parent 273d9304dc
commit fc28586940
5 changed files with 143 additions and 5 deletions

View File

@@ -175,6 +175,12 @@ void Game::handleEvents() {
while (SDL_PollEvent(&event)) {
GlobalEvents::handle(event);
#ifdef _DEBUG
// En modo editor: click del ratón cierra la consola
if (Console::get()->isActive() && MapEditor::get()->isActive() &&
event.type == SDL_EVENT_MOUSE_BUTTON_DOWN) {
Console::get()->toggle();
}
if (!Console::get()->isActive()) {
// Tecla 9: toggle editor (funciona tanto dentro como fuera del editor)
if (event.type == SDL_EVENT_KEY_DOWN && event.key.key == SDLK_9 && static_cast<int>(event.key.repeat) == 0) {