[sdl] ping every second

This commit is contained in:
Milo Turner 2020-02-19 19:56:02 -05:00
parent e09947b953
commit 0d68825b70
1 changed files with 3 additions and 0 deletions

View File

@ -3,6 +3,7 @@
#include "../util/region.h" #include "../util/region.h"
#include "../concurrent/msgq.h" #include "../concurrent/msgq.h"
#include "../concurrent/msg.h" #include "../concurrent/msg.h"
#include <unistd.h>
#include <SDL2/SDL.h> #include <SDL2/SDL.h>
#include <SDL2/SDL_ttf.h> #include <SDL2/SDL_ttf.h>
@ -75,6 +76,8 @@ bool ax__backend_is_shutdown(struct ax_backend* bac)
void ax__backend_wait_for_event(struct ax_backend* bac) void ax__backend_wait_for_event(struct ax_backend* bac)
{ {
(void) bac; (void) bac;
printf("ping.\n");
usleep(1000 * 1000);
} }
void ax__backend_step(struct ax_backend* bac) void ax__backend_step(struct ax_backend* bac)