fixed compiler warnings (after adding "-Wstrict-prototypes")
[rocksndiamonds.git] / src / events.h
index 1916ea327357eb14721600037352dbe5a91b9535..3234877318cb54c6333c6d5981a5650ec8f52c0c 100644 (file)
@@ -1,35 +1,52 @@
-/***********************************************************
-*  Rocks'n'Diamonds -- McDuffin Strikes Back!              *
-*----------------------------------------------------------*
-*  ©1995 Artsoft Development                               *
-*        Holger Schemel                                    *
-*        33659 Bielefeld-Senne                             *
-*        Telefon: (0521) 493245                            *
-*        eMail: aeglos@valinor.owl.de                      *
-*               aeglos@uni-paderborn.de                    *
-*               q99492@pbhrzx.uni-paderborn.de             *
-*----------------------------------------------------------*
-*  events.h                                                *
-***********************************************************/
+// ============================================================================
+// Rocks'n'Diamonds - McDuffin Strikes Back!
+// ----------------------------------------------------------------------------
+// (c) 1995-2014 by Artsoft Entertainment
+//                         Holger Schemel
+//                 info@artsoft.org
+//                 http://www.artsoft.org/
+// ----------------------------------------------------------------------------
+// events.h
+// ============================================================================
 
 #ifndef EVENTS_H
 #define EVENTS_H
 
 #include "main.h"
 
+boolean NextValidEvent(Event *);
+
 void EventLoop(void);
+void HandleOtherEvents(Event *);
+void ClearAutoRepeatKeyEvents(void);
 void ClearEventQueue(void);
+void ClearPlayerAction(void);
 void SleepWhileUnmapped(void);
 
-void HandleExposeEvent(XExposeEvent *);
-void HandleButtonEvent(XButtonEvent *);
-void HandleMotionEvent(XMotionEvent *);
-void HandleKeyEvent(XKeyEvent *);
-void HandleFocusEvent(int);
-void HandleNoXEvent(void);
+void HandleExposeEvent(ExposeEvent *);
+void HandleButtonEvent(ButtonEvent *);
+void HandleMotionEvent(MotionEvent *);
+#if defined(TARGET_SDL2)
+void HandleWheelEvent(WheelEvent *);
+void HandleWindowEvent(WindowEvent *);
+void HandleFingerEvent(FingerEvent *);
+void HandleTextEvent(TextEvent *);
+void HandlePauseResumeEvent(PauseResumeEvent *);
+#endif
+void HandleKeysDebug(Key);
+void HandleKeyEvent(KeyEvent *);
+void HandleFocusEvent(FocusChangeEvent *);
+void HandleClientMessageEvent(ClientMessageEvent *);
+void HandleWindowManagerEvent(Event *);
+
+void HandleToonAnimations(void);
+
+void HandleButton(int, int, int, int);
+void HandleKey(Key, int);
+void HandleJoystick(void);
+void HandleSpecialGameControllerButtons(Event *);
+void HandleSpecialGameControllerKeys(Key, int);
 
-void HandleButton(int, int, int);
-void HandleKey(KeySym);
-void HandleJoystick();
+boolean DoKeysymAction(int);
 
 #endif