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 boolean NextValidEvent(Event *);
26 void HandleOtherEvents(Event *);
27 void ClearAutoRepeatKeyEvents(void);
28 void ClearEventQueue(void);
29 void ClearPlayerAction(void);
31 void HandleButtonEvent(ButtonEvent *);
32 void HandleMotionEvent(MotionEvent *);
33 void HandleWheelEvent(WheelEvent *);
34 void HandleWindowEvent(WindowEvent *);
35 void HandleFingerEvent(FingerEvent *);
36 void HandleTextEvent(TextEvent *);
37 void HandlePauseResumeEvent(PauseResumeEvent *);
38 boolean HandleKeysDebug(Key, int);
39 void HandleKeyEvent(KeyEvent *);
40 void HandleDropEvent(Event *);
41 void HandleUserEvent(UserEvent *);
43 void HandleToonAnimations(void);
45 void HandleButton(int, int, int, int);
46 void HandleKey(Key, int);
47 void HandleJoystick(void);
48 void HandleSpecialGameControllerButtons(Event *);
49 void HandleSpecialGameControllerKeys(Key, int);
51 boolean DoKeysymAction(int);