Updated the documentation for the SDL_PushEvent() call.
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40277
This commit is contained in:
parent
528959fcb2
commit
5462cb89e0
2 changed files with 3 additions and 3 deletions
|
@ -274,8 +274,8 @@ extern DECLSPEC int SDL_PollEvent(SDL_Event *event);
|
||||||
extern DECLSPEC int SDL_WaitEvent(SDL_Event *event);
|
extern DECLSPEC int SDL_WaitEvent(SDL_Event *event);
|
||||||
|
|
||||||
/* Add an event to the event queue.
|
/* Add an event to the event queue.
|
||||||
This function returns 0, or -1 if the event couldn't be added to
|
This function returns 0 if the event queue was full, or -1
|
||||||
the event queue. If the event queue is full, this function fails.
|
if there was some other error. Returns 1 on success.
|
||||||
*/
|
*/
|
||||||
extern DECLSPEC int SDL_PushEvent(SDL_Event *event);
|
extern DECLSPEC int SDL_PushEvent(SDL_Event *event);
|
||||||
|
|
||||||
|
|
|
@ -301,7 +301,7 @@ int SDL_PeepEvents(SDL_Event *events, int numevents, SDL_eventaction action,
|
||||||
|
|
||||||
/* Don't look after we've quit */
|
/* Don't look after we've quit */
|
||||||
if ( ! SDL_EventQ.active ) {
|
if ( ! SDL_EventQ.active ) {
|
||||||
return(0);
|
return(-1);
|
||||||
}
|
}
|
||||||
/* Lock the event queue */
|
/* Lock the event queue */
|
||||||
used = 0;
|
used = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue