Fixed bug #684
Reworked Pierre's patch a little bit, which added SDL_WaitEventTimeout() --HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403538
This commit is contained in:
parent
a0978cdf4d
commit
aad9f51bdf
2 changed files with 30 additions and 7 deletions
|
@ -412,6 +412,14 @@ extern DECLSPEC int SDLCALL SDL_PollEvent(SDL_Event * event);
|
|||
*/
|
||||
extern DECLSPEC int SDLCALL SDL_WaitEvent(SDL_Event * event);
|
||||
|
||||
/* Waits until the specified timeout (in milliseconds) 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.
|
||||
*/
|
||||
extern DECLSPEC int SDLCALL SDL_WaitEventTimeout(SDL_Event * event,
|
||||
int timeout);
|
||||
|
||||
/* Add an event to the event queue.
|
||||
This function returns 1 on success, 0 if the event was filtered,
|
||||
or -1 if the event queue was full or there was some other error.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue