added configurability of different window size for title screens
[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 #if defined(TARGET_SDL2)
18 int FilterEvents(void *, Event *);
19 #else
20 int FilterEvents(const Event *);
21 #endif
22
23 boolean NextValidEvent(Event *);
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 void HandlePauseResumeEvent(PauseResumeEvent *);
39 #endif
40 void HandleKeyEvent(KeyEvent *);
41 void HandleFocusEvent(FocusChangeEvent *);
42 void HandleClientMessageEvent(ClientMessageEvent *);
43 void HandleWindowManagerEvent(Event *);
44
45 void HandleNoEvent(void);
46 void HandleToonAnimations(void);
47
48 void HandleButton(int, int, int, int);
49 void HandleKey(Key, int);
50 void HandleJoystick();
51
52 #endif