added optional button to restart game (door, panel and touch variants)
[rocksndiamonds.git] / src / events.h
index a809665c9690994b2701be30a3d0873b4a3ab6a8..3887f3fdb5d1b4346fb13cb913d90ac325d94fc3 100644 (file)
@@ -4,7 +4,7 @@
 // (c) 1995-2014 by Artsoft Entertainment
 //                         Holger Schemel
 //                 info@artsoft.org
-//                 http://www.artsoft.org/
+//                 https://www.artsoft.org/
 // ----------------------------------------------------------------------------
 // events.h
 // ============================================================================
 
 #include "main.h"
 
-#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
+
+
+void SetPlayfieldMouseCursorEnabled(boolean);
+
+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 *);
-#if defined(TARGET_SDL2)
 void HandleWheelEvent(WheelEvent *);
 void HandleWindowEvent(WindowEvent *);
 void HandleFingerEvent(FingerEvent *);
 void HandleTextEvent(TextEvent *);
 void HandlePauseResumeEvent(PauseResumeEvent *);
-#endif
-void HandleKeysDebug(Key);
+boolean HandleKeysDebug(Key, int);
 void HandleKeyEvent(KeyEvent *);
-void HandleFocusEvent(FocusChangeEvent *);
-void HandleClientMessageEvent(ClientMessageEvent *);
-void HandleWindowManagerEvent(Event *);
+void HandleDropEvent(Event *);
+void HandleUserEvent(UserEvent *);
 
-void HandleNoEvent(void);
 void HandleToonAnimations(void);
 
 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