Mercurial > sdl-ios-xcode
comparison src/events/SDL_events.c @ 384:1870bb49ab18
Almost... :)
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Wed, 29 May 2002 23:31:33 +0000 |
parents | 5e31d8bfffcf |
children | b8d311d90021 |
comparison
equal
deleted
inserted
replaced
383:5e31d8bfffcf | 384:1870bb49ab18 |
---|---|
390 } | 390 } |
391 } | 391 } |
392 | 392 |
393 int SDL_PushEvent(SDL_Event *event) | 393 int SDL_PushEvent(SDL_Event *event) |
394 { | 394 { |
395 return((SDL_PeepEvents(event, 1, SDL_ADDEVENT, 0) == 0) ? -1 : 0); | 395 if ( SDL_PeepEvents(event, 1, SDL_ADDEVENT, 0) <= 0 ) |
396 return -1; | |
397 return 0; | |
396 } | 398 } |
397 | 399 |
398 void SDL_SetEventFilter (SDL_EventFilter filter) | 400 void SDL_SetEventFilter (SDL_EventFilter filter) |
399 { | 401 { |
400 SDL_Event bitbucket; | 402 SDL_Event bitbucket; |