added SDL event filter to track mouse position from mouse motion events
[rocksndiamonds.git] / src / libgame / system.c
index 6f27daf6e94a24461ce60311ce0b1630139fdcba..7fcb784d66c9f7608f00dad238a52b76cc0ce464 100644 (file)
@@ -1623,6 +1623,11 @@ void SetAudioMode(boolean enabled)
 // event functions
 // ============================================================================
 
 // event functions
 // ============================================================================
 
+void InitEventFilter(EventFilter filter_function)
+{
+  SDL_SetEventFilter(filter_function, NULL);
+}
+
 boolean PendingEvent(void)
 {
   return (SDL_PollEvent(NULL) ? TRUE : FALSE);
 boolean PendingEvent(void)
 {
   return (SDL_PollEvent(NULL) ? TRUE : FALSE);