-#if defined(TARGET_SDL2)
-int FilterEvents(void *, Event *);
-#else
-int FilterEvents(const Event *);
-#endif
+
+#define USEREVENT_NONE 0
+#define USEREVENT_ANIM_DELAY_ACTION 1
+#define USEREVENT_ANIM_EVENT_ACTION 2
+#define USEREVENT_GADGET_PRESSED 3
+
+
+int FilterMouseMotionEvents(void *, Event *);
+boolean NextValidEvent(Event *);
+void StopProcessingEvents(void);