include/SDL_events.h
changeset 930 02759105b989
parent 911 04a403e4ccf5
child 1258 b2283b0ded26
equal deleted inserted replaced
929:03fb90fc135e 930:02759105b989
   283   This function sets up a filter to process all events before they
   283   This function sets up a filter to process all events before they
   284   change internal state and are posted to the internal event queue.
   284   change internal state and are posted to the internal event queue.
   285 
   285 
   286   The filter is protypted as:
   286   The filter is protypted as:
   287 */
   287 */
   288 typedef int (*SDL_EventFilter)(const SDL_Event *event);
   288 typedef int (SDLCALL *SDL_EventFilter)(const SDL_Event *event);
   289 /*
   289 /*
   290   If the filter returns 1, then the event will be added to the internal queue.
   290   If the filter returns 1, then the event will be added to the internal queue.
   291   If it returns 0, then the event will be dropped from the queue, but the 
   291   If it returns 0, then the event will be dropped from the queue, but the 
   292   internal state will still be updated.  This allows selective filtering of
   292   internal state will still be updated.  This allows selective filtering of
   293   dynamically arriving events.
   293   dynamically arriving events.