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