include/SDL_events.h
changeset 3072 9da8f57ab92c
parent 2859 99210400e8b9
child 3132 88861448961f
child 3167 0c85abc61e47
equal deleted inserted replaced
3071:6f3308d4b6cd 3072:9da8f57ab92c
   410    was an error while waiting for events.  If 'event' is not NULL, the next
   410    was an error while waiting for events.  If 'event' is not NULL, the next
   411    event is removed from the queue and stored in that area.
   411    event is removed from the queue and stored in that area.
   412  */
   412  */
   413 extern DECLSPEC int SDLCALL SDL_WaitEvent(SDL_Event * event);
   413 extern DECLSPEC int SDLCALL SDL_WaitEvent(SDL_Event * event);
   414 
   414 
       
   415 /* Waits until the specified timeout (in milliseconds) for the next available
       
   416    event, returning 1, or 0 if there was an error while waiting for events. If
       
   417    'event' is not NULL, the next event is removed from the queue and stored in
       
   418    that area.
       
   419  */
       
   420 extern DECLSPEC int SDLCALL SDL_WaitEventTimeout(SDL_Event * event,
       
   421                                                  int timeout);
       
   422 
   415 /* Add an event to the event queue.
   423 /* Add an event to the event queue.
   416    This function returns 1 on success, 0 if the event was filtered,
   424    This function returns 1 on success, 0 if the event was filtered,
   417    or -1 if the event queue was full or there was some other error.
   425    or -1 if the event queue was full or there was some other error.
   418  */
   426  */
   419 extern DECLSPEC int SDLCALL SDL_PushEvent(SDL_Event * event);
   427 extern DECLSPEC int SDLCALL SDL_PushEvent(SDL_Event * event);