fixed compiler warnings (after adding "-Wstrict-prototypes")
[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 #if defined(TARGET_SDL2)
30 void HandleWheelEvent(WheelEvent *);
31 void HandleWindowEvent(WindowEvent *);
32 void HandleFingerEvent(FingerEvent *);
33 void HandleTextEvent(TextEvent *);
34 void HandlePauseResumeEvent(PauseResumeEvent *);
35 #endif
36 void HandleKeysDebug(Key);
37 void HandleKeyEvent(KeyEvent *);
38 void HandleFocusEvent(FocusChangeEvent *);
39 void HandleClientMessageEvent(ClientMessageEvent *);
40 void HandleWindowManagerEvent(Event *);
41
42 void HandleToonAnimations(void);
43
44 void HandleButton(int, int, int, int);
45 void HandleKey(Key, int);
46 void HandleJoystick(void);
47 void HandleSpecialGameControllerButtons(Event *);
48 void HandleSpecialGameControllerKeys(Key, int);
49
50 boolean DoKeysymAction(int);
51
52 #endif