include/SDL_events.h
branchSDL-1.3
changeset 1731 875c3cf1a12c
parent 1724 6c63fc2bd986
     1.1 --- a/include/SDL_events.h	Sat Jul 08 18:06:02 2006 +0000
     1.2 +++ b/include/SDL_events.h	Sat Jul 08 20:07:08 2006 +0000
     1.3 @@ -389,8 +389,8 @@
     1.4  extern DECLSPEC int SDLCALL SDL_WaitEvent(SDL_Event * event);
     1.5  
     1.6  /* Add an event to the event queue.
     1.7 -   This function returns 0 on success, or -1 if the event queue was full
     1.8 -   or there was some other error.
     1.9 +   This function returns 1 on success, 0 if the event was filtered,
    1.10 +   or -1 if the event queue was full or there was some other error.
    1.11   */
    1.12  extern DECLSPEC int SDLCALL SDL_PushEvent(SDL_Event * event);
    1.13  
    1.14 @@ -422,9 +422,10 @@
    1.15  
    1.16  /*
    1.17    Return the current event filter - can be used to "chain" filters.
    1.18 -  If there is no event filter set, this function returns NULL.
    1.19 +  If there is no event filter set, this function returns SDL_FALSE.
    1.20  */
    1.21 -extern DECLSPEC SDL_EventFilter SDLCALL SDL_GetEventFilter(void **userdata);
    1.22 +extern DECLSPEC SDL_bool SDLCALL SDL_GetEventFilter(SDL_EventFilter * filter,
    1.23 +                                                    void **userdata);
    1.24  
    1.25  /*
    1.26    Run the filter function on the current event queue, removing any