Añadido manejo de entradas a PantallaGracias.cpp

parent 931170ac
Showing with 6 additions and 0 deletions
...@@ -12,6 +12,12 @@ PantallaGracias::PantallaGracias() : ...@@ -12,6 +12,12 @@ PantallaGracias::PantallaGracias() :
void PantallaGracias::manejarEntrada(Handle &handle) { void PantallaGracias::manejarEntrada(Handle &handle) {
SDL_Event event;
while (SDL_PollEvent(&event)) {
if (event.type == SDL_QUIT) {
handle.removeAll();
}
}
} }
void PantallaGracias::renderizar(SDL_Renderer *renderer, int tamx, int tamy) { void PantallaGracias::renderizar(SDL_Renderer *renderer, int tamx, int tamy) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment