emscripten: fix reset quan fas exit. Eliminades les opcions d'eixida

This commit is contained in:
2026-04-13 17:57:54 +02:00
parent 9d70138855
commit a035fecb04
7 changed files with 30 additions and 12 deletions

View File

@@ -208,6 +208,7 @@ void Instructions::render() {
// Comprueba los eventos
void Instructions::checkEvents() {
#ifndef __EMSCRIPTEN__
// Comprueba los eventos que hay en la cola
while (SDL_PollEvent(eventHandler) != 0) {
// Evento de salida de la aplicación
@@ -217,16 +218,18 @@ void Instructions::checkEvents() {
break;
}
}
#endif
}
// Comprueba las entradas
void Instructions::checkInput() {
#ifndef __EMSCRIPTEN__
if (input->checkInput(input_exit, REPEAT_FALSE)) {
quitRequested = true;
finished = true;
}
else if (input->checkInput(input_window_fullscreen, REPEAT_FALSE)) {
} else
#endif
if (input->checkInput(input_window_fullscreen, REPEAT_FALSE)) {
screen->switchVideoMode();
}