include/SDL_events.h
changeset 3072 9da8f57ab92c
parent 2859 99210400e8b9
child 3132 88861448961f
child 3167 0c85abc61e47
     1.1 --- a/include/SDL_events.h	Tue Feb 17 05:57:54 2009 +0000
     1.2 +++ b/include/SDL_events.h	Tue Feb 17 05:59:40 2009 +0000
     1.3 @@ -412,6 +412,14 @@
     1.4   */
     1.5  extern DECLSPEC int SDLCALL SDL_WaitEvent(SDL_Event * event);
     1.6  
     1.7 +/* Waits until the specified timeout (in milliseconds) for the next available
     1.8 +   event, returning 1, or 0 if there was an error while waiting for events. If
     1.9 +   'event' is not NULL, the next event is removed from the queue and stored in
    1.10 +   that area.
    1.11 + */
    1.12 +extern DECLSPEC int SDLCALL SDL_WaitEventTimeout(SDL_Event * event,
    1.13 +                                                 int timeout);
    1.14 +
    1.15  /* Add an event to the event queue.
    1.16     This function returns 1 on success, 0 if the event was filtered,
    1.17     or -1 if the event queue was full or there was some other error.