Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
with
3 additions
and
1 deletion.
-
+3
−1
src/events/SDL_events.c
|
@@ -392,7 +392,9 @@ int SDL_WaitEvent (SDL_Event *event) |
|
|
|
|
|
int SDL_PushEvent(SDL_Event *event) |
|
|
{ |
|
|
return((SDL_PeepEvents(event, 1, SDL_ADDEVENT, 0) == 0) ? -1 : 0); |
|
|
if ( SDL_PeepEvents(event, 1, SDL_ADDEVENT, 0) <= 0 ) |
|
|
return -1; |
|
|
return 0; |
|
|
} |
|
|
|
|
|
void SDL_SetEventFilter (SDL_EventFilter filter) |
|
|
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.