removed unused code
[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
18 #define USEREVENT_NONE                  0
19 #define USEREVENT_ANIM_DELAY_ACTION     1
20 #define USEREVENT_ANIM_EVENT_ACTION     2
21
22
23 int FilterMouseMotionEvents(void *, Event *);
24 boolean NextValidEvent(Event *);
25 void StopProcessingEvents(void);
26
27 void EventLoop(void);
28 void HandleOtherEvents(Event *);
29 void ClearAutoRepeatKeyEvents(void);
30 void ClearEventQueue(void);
31 void ClearPlayerAction(void);
32
33 void HandleButtonEvent(ButtonEvent *);
34 void HandleMotionEvent(MotionEvent *);
35 void HandleWheelEvent(WheelEvent *);
36 void HandleWindowEvent(WindowEvent *);
37 void HandleFingerEvent(FingerEvent *);
38 void HandleTextEvent(TextEvent *);
39 void HandlePauseResumeEvent(PauseResumeEvent *);
40 boolean HandleKeysDebug(Key, int);
41 void HandleKeyEvent(KeyEvent *);
42 void HandleDropEvent(Event *);
43 void HandleUserEvent(UserEvent *);
44
45 void HandleToonAnimations(void);
46
47 void HandleButton(int, int, int, int);
48 void HandleKey(Key, int);
49 void HandleJoystick(void);
50 void HandleSpecialGameControllerButtons(Event *);
51 void HandleSpecialGameControllerKeys(Key, int);
52
53 boolean DoKeysymAction(int);
54
55 #endif