tibia_alpha/input.c

25 lines
409 B
C

//
// Created by rov on 12/26/25.
//
#include "input.h"
#include <SDL3/SDL.h>
#include "gui.h"
void Input_Poll(App_t *app) {
SDL_Event event;
while (SDL_PollEvent(&event)) {
Gui_ProcessEvent(&event);
switch (event.type) {
case SDL_EVENT_QUIT:
app->isRunning = false;
break;
default:
break;
}
}
}