1 // ============================================================================
2 // Rocks'n'Diamonds - McDuffin Strikes Back!
3 // ----------------------------------------------------------------------------
4 // (c) 1995-2014 by Artsoft Entertainment
7 // https://www.artsoft.org/
8 // ----------------------------------------------------------------------------
10 // ============================================================================
18 #define USEREVENT_NONE 0
19 #define USEREVENT_ANIM_DELAY_ACTION 1
20 #define USEREVENT_ANIM_EVENT_ACTION 2
21 #define USEREVENT_GADGET_PRESSED 3
24 int FilterMouseMotionEvents(void *, Event *);
25 boolean NextValidEvent(Event *);
26 void StopProcessingEvents(void);
29 void HandleOtherEvents(Event *);
30 void ClearAutoRepeatKeyEvents(void);
31 void ClearEventQueue(void);
32 void ClearPlayerAction(void);
34 void HandleButtonEvent(ButtonEvent *);
35 void HandleMotionEvent(MotionEvent *);
36 void HandleWheelEvent(WheelEvent *);
37 void HandleWindowEvent(WindowEvent *);
38 void HandleFingerEvent(FingerEvent *);
39 void HandleTextEvent(TextEvent *);
40 void HandlePauseResumeEvent(PauseResumeEvent *);
41 boolean HandleKeysDebug(Key, int);
42 void HandleKeyEvent(KeyEvent *);
43 void HandleDropEvent(Event *);
44 void HandleUserEvent(UserEvent *);
46 void HandleToonAnimations(void);
48 void HandleButton(int, int, int, int);
49 void HandleKey(Key, int);
50 void HandleJoystick(void);
51 void HandleSpecialGameControllerButtons(Event *);
52 void HandleSpecialGameControllerKeys(Key, int);
54 boolean DoKeysymAction(int);