added using new screen fading option ".auto_delay_unit"
[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 int FilterMouseMotionEvents(void *, Event *);
24 boolean NextValidEvent(Event *);
25
26 void EventLoop(void);
27 void HandleOtherEvents(Event *);
28 void ClearAutoRepeatKeyEvents(void);
29 void ClearEventQueue(void);
30 void ClearPlayerAction(void);
31
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 *);
43
44 void HandleToonAnimations(void);
45
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);
51
52 boolean DoKeysymAction(int);
53
54 #endif