Refactor input polling

This commit is contained in:
var
2026-03-29 23:04:49 -05:00
parent 9a61a71b09
commit 7b40b8702c
5 changed files with 65 additions and 49 deletions

View File

@@ -1,7 +1,7 @@
#include <stdio.h>
#include "SDL2/SDL.h"
#include "SDL2/SDL_timer.h"
#include "game.h"
#include "input.h"
int main(int argc, char* argv[])
{
@@ -16,8 +16,8 @@ int main(int argc, char* argv[])
while (gs->running)
{
Input_Poll(gs);
Game_Update(gs);
SDL_Delay(100);
}
printf("Shutting down...\n");