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

@@ -185,6 +185,7 @@ bool Intro::loadMedia() {
// Comprueba los eventos
void Intro::checkEvents() {
#ifndef __EMSCRIPTEN__
// Comprueba los eventos que hay en la cola
while (SDL_PollEvent(eventHandler) != 0) {
// Evento de salida de la aplicación
@@ -193,15 +194,17 @@ void Intro::checkEvents() {
break;
}
}
#endif
}
// Comprueba las entradas
void Intro::checkInput() {
#ifndef __EMSCRIPTEN__
if (input->checkInput(input_exit, REPEAT_FALSE)) {
section->name = SECTION_PROG_QUIT;
}
else if (input->checkInput(input_window_fullscreen, REPEAT_FALSE)) {
} else
#endif
if (input->checkInput(input_window_fullscreen, REPEAT_FALSE)) {
screen->switchVideoMode();
}