fixed inconsistent global animation state after event actions
[rocksndiamonds.git] / src / events.h
1 // ============================================================================
2 // Rocks'n'Diamonds - McDuffin Strikes Back!
3 // ----------------------------------------------------------------------------
4 // (c) 1995-2014 by Artsoft Entertainment
5 //                  Holger Schemel
6 //                  info@artsoft.org
7 //                  http://www.artsoft.org/
8 // ----------------------------------------------------------------------------
9 // events.h
10 // ============================================================================
11
12 #ifndef EVENTS_H
13 #define EVENTS_H
14
15 #include "main.h"
16
17
18 #define USEREVENT_NONE                  0
19 #define USEREVENT_ANIM_EVENT_ACTION     1
20
21
22 boolean NextValidEvent(Event *);
23
24 void EventLoop(void);
25 void HandleOtherEvents(Event *);
26 void ClearAutoRepeatKeyEvents(void);
27 void ClearEventQueue(void);
28 void ClearPlayerAction(void);
29
30 void HandleButtonEvent(ButtonEvent *);
31 void HandleMotionEvent(MotionEvent *);
32 void HandleWheelEvent(WheelEvent *);
33 void HandleWindowEvent(WindowEvent *);
34 void HandleFingerEvent(FingerEvent *);
35 void HandleTextEvent(TextEvent *);
36 void HandlePauseResumeEvent(PauseResumeEvent *);
37 boolean HandleKeysDebug(Key, int);
38 void HandleKeyEvent(KeyEvent *);
39 void HandleDropEvent(Event *);
40 void HandleUserEvent(UserEvent *);
41
42 void HandleToonAnimations(void);
43
44 void HandleButton(int, int, int, int);
45 void HandleKey(Key, int);
46 void HandleJoystick(void);
47 void HandleSpecialGameControllerButtons(Event *);
48 void HandleSpecialGameControllerKeys(Key, int);
49
50 boolean DoKeysymAction(int);
51
52 #endif