-/***********************************************************
-* Rocks'n'Diamonds -- McDuffin Strikes Back! *
-*----------------------------------------------------------*
-* (c) 1995-98 Artsoft Entertainment *
-* Holger Schemel *
-* Oststrasse 11a *
-* 33604 Bielefeld *
-* phone: ++49 +521 290471 *
-* email: aeglos@valinor.owl.de *
-*----------------------------------------------------------*
-* events.h *
-***********************************************************/
+// ============================================================================
+// Rocks'n'Diamonds - McDuffin Strikes Back!
+// ----------------------------------------------------------------------------
+// (c) 1995-2014 by Artsoft Entertainment
+// Holger Schemel
+// info@artsoft.org
+// https://www.artsoft.org/
+// ----------------------------------------------------------------------------
+// events.h
+// ============================================================================
#ifndef EVENTS_H
#define EVENTS_H
#include "main.h"
-int FilterMouseMotionEvents(const Event *);
+
+#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 SleepWhileUnmapped(void);
+void ClearPlayerAction(void);
-void HandleExposeEvent(ExposeEvent *);
void HandleButtonEvent(ButtonEvent *);
void HandleMotionEvent(MotionEvent *);
+void HandleWheelEvent(WheelEvent *);
+void HandleWindowEvent(WindowEvent *);
+void HandleFingerEvent(FingerEvent *);
+void HandleTextEvent(TextEvent *);
+void HandlePauseResumeEvent(PauseResumeEvent *);
+boolean HandleKeysDebug(Key, int);
void HandleKeyEvent(KeyEvent *);
-void HandleFocusEvent(FocusChangeEvent *);
-void HandleClientMessageEvent(ClientMessageEvent *event);
+void HandleDropEvent(Event *);
+void HandleUserEvent(UserEvent *);
-void HandleNoEvent(void);
+void HandleToonAnimations(void);
-void HandleButton(int, int, int);
+void HandleButton(int, int, int, int);
void HandleKey(Key, int);
-void HandleJoystick();
+void HandleJoystick(void);
+void HandleSpecialGameControllerButtons(Event *);
+void HandleSpecialGameControllerKeys(Key, int);
+
+boolean DoKeysymAction(int);
#endif