Afegit globalEvents

This commit is contained in:
2025-02-23 09:53:06 +01:00
parent 8ae686a70b
commit 3ba4293e8a
16 changed files with 111 additions and 110 deletions

View File

@@ -12,6 +12,7 @@
#include "utils.h" // for options_t, section_t, color_t, stringToC...
#include "options.h"
#include "global_inputs.h"
#include "global_events.h"
// Constructor
LoadingScreen::LoadingScreen()
@@ -81,12 +82,7 @@ void LoadingScreen::checkEvents()
SDL_Event event;
while (SDL_PollEvent(&event))
{
// Evento de salida de la aplicación
if (event.type == SDL_QUIT)
{
options.section.name = SECTION_QUIT;
break;
}
globalEvents::check(event);
}
}