- faltava propietat mirror
- al fer clic es tanca la consola
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user