X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Flibgame%2Fsystem.c;h=7fcb784d66c9f7608f00dad238a52b76cc0ce464;hp=6f27daf6e94a24461ce60311ce0b1630139fdcba;hb=8e4eb47925648cd84d134dfe05ca7fb30727dc24;hpb=3cc2ee99e57014c6962d26365e92bd3eac36a492;ds=sidebyside diff --git a/src/libgame/system.c b/src/libgame/system.c index 6f27daf6..7fcb784d 100644 --- a/src/libgame/system.c +++ b/src/libgame/system.c @@ -1623,6 +1623,11 @@ void SetAudioMode(boolean enabled) // event functions // ============================================================================ +void InitEventFilter(EventFilter filter_function) +{ + SDL_SetEventFilter(filter_function, NULL); +} + boolean PendingEvent(void) { return (SDL_PollEvent(NULL) ? TRUE : FALSE);