added Android project files
[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 #define USEREVENT_GADGET_PRESSED        3
22
23
24 int FilterMouseMotionEvents(void *, Event *);
25 boolean NextValidEvent(Event *);
26 void StopProcessingEvents(void);
27
28 void EventLoop(void);
29 void HandleOtherEvents(Event *);
30 void ClearAutoRepeatKeyEvents(void);
31 void ClearEventQueue(void);
32 void ClearPlayerAction(void);
33
34 void HandleButtonEvent(ButtonEvent *);
35 void HandleMotionEvent(MotionEvent *);
36 void HandleWheelEvent(WheelEvent *);
37 void HandleWindowEvent(WindowEvent *);
38 void HandleFingerEvent(FingerEvent *);
39 void HandleTextEvent(TextEvent *);
40 void HandlePauseResumeEvent(PauseResumeEvent *);
41 boolean HandleKeysDebug(Key, int);
42 void HandleKeyEvent(KeyEvent *);
43 void HandleDropEvent(Event *);
44 void HandleUserEvent(UserEvent *);
45
46 void HandleToonAnimations(void);
47
48 void HandleButton(int, int, int, int);
49 void HandleKey(Key, int);
50 void HandleJoystick(void);
51 void HandleSpecialGameControllerButtons(Event *);
52 void HandleSpecialGameControllerKeys(Key, int);
53
54 boolean DoKeysymAction(int);
55
56 #endif