rnd-20100107-1-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 int FilterMouseMotionEvents(const Event *);
20 void EventLoop(void);
21 void HandleOtherEvents(Event *);
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 HandleKeyEvent(KeyEvent *);
30 void HandleFocusEvent(FocusChangeEvent *);
31 void HandleClientMessageEvent(ClientMessageEvent *);
32 void HandleWindowManagerEvent(Event *);
33
34 void HandleNoEvent(void);
35
36 void HandleButton(int, int, int, int);
37 void HandleKey(Key, int);
38 void HandleJoystick();
39
40 #endif