forked from jaildesigner-jailgames/jaildoctors_dilemma
Afegit globalEvents
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
#include "options.h"
|
||||
#include "debug.h"
|
||||
#include "global_inputs.h"
|
||||
#include "global_events.h"
|
||||
|
||||
// Constructor
|
||||
Demo::Demo()
|
||||
@@ -75,13 +76,7 @@ void Demo::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;
|
||||
screen->setBorderColor(stringToColor(options.palette, "black"));
|
||||
break;
|
||||
}
|
||||
globalEvents::check(event);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user