SDL_WaitEvent

Name

SDL_WaitEvent -- Waits indefinitely for the next available event.

Synopsis

#include "SDL.h"

int SDL_WaitEvent(SDL_Event *event);

Description

Waits indefinitely for the next available event, returning 0 if there was an error while waiting for events, 1 otherwise.

If event is not NULL, the next event is removed from the queue and stored in that area.

As this function implicitly calls SDL_PumpEvents, you can only call this function in the thread that set the video mode.

See Also

SDL_Event, SDL_PollEvent

SDL_WaitEvent (last edited 2008-08-22 01:27:03 by crawshaw)