rnd-20140115-2-src
[rocksndiamonds.git] / src / events.h
1 /***********************************************************
2 * Rocks'n'Diamonds -- McDuffin Strikes Back!               *
3 *----------------------------------------------------------*
4 * (c) 1995-2006 Artsoft Entertainment                      *
5 *               Holger Schemel                             *
6 *               Detmolder Strasse 189                      *
7 *               33604 Bielefeld                            *
8 *               Germany                                    *
9 *               e-mail: info@artsoft.org                   *
10 *----------------------------------------------------------*
11 * events.h                                                 *
12 ***********************************************************/
13
14 #ifndef EVENTS_H
15 #define EVENTS_H
16
17 #include "main.h"
18
19 #if defined(TARGET_SDL2)
20 int FilterEvents(void *, Event *);
21 #else
22 int FilterEvents(const Event *);
23 #endif
24
25 void EventLoop(void);
26 void HandleOtherEvents(Event *);
27 void ClearEventQueue(void);
28 void ClearPlayerAction(void);
29 void SleepWhileUnmapped(void);
30
31 void HandleExposeEvent(ExposeEvent *);
32 void HandleButtonEvent(ButtonEvent *);
33 void HandleMotionEvent(MotionEvent *);
34 #if defined(TARGET_SDL2)
35 void HandleWindowEvent(WindowEvent *);
36 void HandleFingerEvent(FingerEvent *);
37 void HandleTextEvent(TextEvent *);
38 #endif
39 void HandleKeyEvent(KeyEvent *);
40 void HandleFocusEvent(FocusChangeEvent *);
41 void HandleClientMessageEvent(ClientMessageEvent *);
42 void HandleWindowManagerEvent(Event *);
43
44 void HandleNoEvent(void);
45 void HandleToonAnimations(void);
46
47 void HandleButton(int, int, int, int);
48 void HandleKey(Key, int);
49 void HandleJoystick();
50
51 #endif