emscripten: fix reset quan fas exit. Eliminades les opcions d'eixida
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user