0c8828c3f15228e57849f94661c56f87a9e0fd7e
[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 boolean NextValidEvent(Event *);
18
19 void EventLoop(void);
20 void HandleOtherEvents(Event *);
21 void ClearAutoRepeatKeyEvents(void);
22 void ClearEventQueue(void);
23 void ClearPlayerAction(void);
24
25 void HandleButtonEvent(ButtonEvent *);
26 void HandleMotionEvent(MotionEvent *);
27 void HandleWheelEvent(WheelEvent *);
28 void HandleWindowEvent(WindowEvent *);
29 void HandleFingerEvent(FingerEvent *);
30 void HandleTextEvent(TextEvent *);
31 void HandlePauseResumeEvent(PauseResumeEvent *);
32 boolean HandleKeysDebug(Key, int);
33 void HandleKeyEvent(KeyEvent *);
34 void HandleClientMessageEvent(ClientMessageEvent *);
35 void HandleDropEvent(Event *);
36
37 void HandleToonAnimations(void);
38
39 void HandleButton(int, int, int, int);
40 void HandleKey(Key, int);
41 void HandleJoystick(void);
42 void HandleSpecialGameControllerButtons(Event *);
43 void HandleSpecialGameControllerKeys(Key, int);
44
45 boolean DoKeysymAction(int);
46
47 #endif