47a86c5673aa073d34bfb9402ea217d99a04f833
[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 void SleepWhileUnmapped(void);
25
26 void HandleExposeEvent(ExposeEvent *);
27 void HandleButtonEvent(ButtonEvent *);
28 void HandleMotionEvent(MotionEvent *);
29 void HandleWheelEvent(WheelEvent *);
30 void HandleWindowEvent(WindowEvent *);
31 void HandleFingerEvent(FingerEvent *);
32 void HandleTextEvent(TextEvent *);
33 void HandlePauseResumeEvent(PauseResumeEvent *);
34 void HandleKeysDebug(Key);
35 void HandleKeyEvent(KeyEvent *);
36 void HandleFocusEvent(FocusChangeEvent *);
37 void HandleClientMessageEvent(ClientMessageEvent *);
38 void HandleWindowManagerEvent(Event *);
39
40 void HandleToonAnimations(void);
41
42 void HandleButton(int, int, int, int);
43 void HandleKey(Key, int);
44 void HandleJoystick(void);
45 void HandleSpecialGameControllerButtons(Event *);
46 void HandleSpecialGameControllerKeys(Key, int);
47
48 boolean DoKeysymAction(int);
49
50 #endif