// (c) 1995-2014 by Artsoft Entertainment
// Holger Schemel
// info@artsoft.org
-// http://www.artsoft.org/
+// https://www.artsoft.org/
// ----------------------------------------------------------------------------
// events.h
// ============================================================================
#include "main.h"
+
+#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);
void EventLoop(void);
void HandleOtherEvents(Event *);
void ClearAutoRepeatKeyEvents(void);
void ClearEventQueue(void);
void ClearPlayerAction(void);
-void SleepWhileUnmapped(void);
-void HandleExposeEvent(ExposeEvent *);
void HandleButtonEvent(ButtonEvent *);
void HandleMotionEvent(MotionEvent *);
void HandleWheelEvent(WheelEvent *);
void HandlePauseResumeEvent(PauseResumeEvent *);
boolean HandleKeysDebug(Key, int);
void HandleKeyEvent(KeyEvent *);
-void HandleFocusEvent(FocusChangeEvent *);
-void HandleClientMessageEvent(ClientMessageEvent *);
-void HandleDropFileEvent(Event *);
-void HandleDropTextEvent(Event *);
+void HandleDropEvent(Event *);
+void HandleUserEvent(UserEvent *);
void HandleToonAnimations(void);