Also add PNG files to binary release
[tennix.git] / input.c
blob317082cd0d7504da942fd0da667061387863e3e5
1 #include <SDL/SDL.h>
3 #include "input.h"
5 void wait_keypress() {
6 SDL_Event e;
7 unsigned char done = 0;
9 SDL_Delay( 100);
11 /* clean up all events */
12 while( SDL_PollEvent( &e));
14 while( !done) {
15 if( SDL_PollEvent( &e)) {
16 done = (e.type == SDL_KEYUP || e.type == SDL_MOUSEBUTTONUP);
17 } else {
18 SDL_Delay( 50);