include/SDL_events.h
changeset 5146 3052772b59db
parent 5081 25d4feb7c127
child 5218 572a73d71b5f
     1.1 --- a/include/SDL_events.h	Tue Feb 01 15:02:21 2011 -0800
     1.2 +++ b/include/SDL_events.h	Tue Feb 01 19:15:42 2011 -0800
     1.3 @@ -581,6 +581,18 @@
     1.4                                                      void **userdata);
     1.5  
     1.6  /**
     1.7 + *  Add a function which is called when an event is added to the queue.
     1.8 + */
     1.9 +extern DECLSPEC void SDLCALL SDL_AddEventWatch(SDL_EventFilter filter,
    1.10 +                                               void *userdata);
    1.11 +
    1.12 +/**
    1.13 + *  Remove an event watch function added with SDL_AddEventWatch()
    1.14 + */
    1.15 +extern DECLSPEC void SDLCALL SDL_DelEventWatch(SDL_EventFilter filter,
    1.16 +                                               void *userdata);
    1.17 +
    1.18 +/**
    1.19   *  Run the filter function on the current event queue, removing any
    1.20   *  events for which the filter returns 0.
    1.21   */