Mercurial > sdl-ios-xcode
comparison src/events/SDL_events.c @ 276:8af85680ca0a
Updated the documentation for the SDL_PushEvent() call.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Wed, 13 Feb 2002 23:40:13 +0000 |
parents | e8157fcb3114 |
children | f6ffac90895c |
comparison
equal
deleted
inserted
replaced
275:53fc686e9428 | 276:8af85680ca0a |
---|---|
299 { | 299 { |
300 int i, used; | 300 int i, used; |
301 | 301 |
302 /* Don't look after we've quit */ | 302 /* Don't look after we've quit */ |
303 if ( ! SDL_EventQ.active ) { | 303 if ( ! SDL_EventQ.active ) { |
304 return(0); | 304 return(-1); |
305 } | 305 } |
306 /* Lock the event queue */ | 306 /* Lock the event queue */ |
307 used = 0; | 307 used = 0; |
308 if ( SDL_mutexP(SDL_EventQ.lock) == 0 ) { | 308 if ( SDL_mutexP(SDL_EventQ.lock) == 0 ) { |
309 if ( action == SDL_ADDEVENT ) { | 309 if ( action == SDL_ADDEVENT ) { |