diff options
Diffstat (limited to 'src/test/test.c')
-rw-r--r-- | src/test/test.c | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/test/test.c b/src/test/test.c new file mode 100644 index 0000000..4f157b1 --- /dev/null +++ b/src/test/test.c @@ -0,0 +1,28 @@ + +#include <stdio.h> +#include "SDL/SDL.h" + + +Uint32 timeSyncInsertNullEventsIfNeeded(Uint32 interval, void *args) { + static i=0; + printf("%i\n",i++); + return 2000; +} + +int main(void) { + + SDL_TimerID timerTimeSync; + + + SDL_Init(SDL_INIT_TIMER); + printf("before addtimer\n"); + timerTimeSync = SDL_AddTimer(2000, timeSyncInsertNullEventsIfNeeded, NULL); + printf("after addtimer\n"); + + if ( timerTimeSync==NULL ) { + printf("bug addtimer\n"); + } + + SDL_Delay(100000); +} + |