added global animation actions executed after init/anim/post delay
[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_DELAY_ACTION     1
20 #define USEREVENT_ANIM_EVENT_ACTION     2
21
22
23 boolean NextValidEvent(Event *);
24
25 void EventLoop(void);
26 void HandleOtherEvents(Event *);
27 void ClearAutoRepeatKeyEvents(void);
28 void ClearEventQueue(void);
29 void ClearPlayerAction(void);
30
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 *);
42
43 void HandleToonAnimations(void);
44
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);
50
51 boolean DoKeysymAction(int);
52
53 #endif