Refactor input polling
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user