[sdl] ping every second
This commit is contained in:
parent
e09947b953
commit
0d68825b70
|
@ -3,6 +3,7 @@
|
|||
#include "../util/region.h"
|
||||
#include "../concurrent/msgq.h"
|
||||
#include "../concurrent/msg.h"
|
||||
#include <unistd.h>
|
||||
#include <SDL2/SDL.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) bac;
|
||||
printf("ping.\n");
|
||||
usleep(1000 * 1000);
|
||||
}
|
||||
|
||||
void ax__backend_step(struct ax_backend* bac)
|
||||
|
|
Loading…
Reference in New Issue