-void SleepWhileUnmapped(void);
-
-void HandleExposeEvent(XExposeEvent *);
-void HandleButtonEvent(XButtonEvent *);
-void HandleMotionEvent(XMotionEvent *);
-void HandleKeyEvent(XKeyEvent *);
-void HandleFocusEvent(int);
-void HandleNoXEvent(void);
-
-void HandleButton(int, int, int);
-void HandleKey(KeySym, int);
-void HandleJoystick();
+void ClearPlayerAction(void);
+
+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 HandleDropEvent(Event *);
+void HandleUserEvent(UserEvent *);
+
+void HandleToonAnimations(void);
+
+void HandleButton(int, int, int, int);
+void HandleKey(Key, int);
+void HandleJoystick(void);
+void HandleSpecialGameControllerButtons(Event *);
+void HandleSpecialGameControllerKeys(Key, int);
+
+boolean DoKeysymAction(int);