SDL_WaitEvent(3) SDL API Reference SDL_WaitEvent(3)NAME
SDL_WaitEvent- Waits indefinitely for the next available event.
int SDL_WaitEvent(SDL_Event *event);
Waits indefinitely for the next available event, returning 1, or 0 if
there was an error while waiting for events.
If event is not NULL, the next event is removed from the queue and
stored in that area.
SDL Tue 11 Sep 2001, 23:00 SDL_WaitEvent(3)