X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Fevents.h;h=e5d2dcc393c143ccca73e4a76bc37cb1326ce62c;hp=a7980e5a0912991376cc13efda8fd263642ccd48;hb=a1fabab3e5db1baab46a95a318b27fdf33d470cc;hpb=a4d4e8e444b21b58dcc88b52ff22726c545142a4 diff --git a/src/events.h b/src/events.h index a7980e5a..e5d2dcc3 100644 --- a/src/events.h +++ b/src/events.h @@ -1,37 +1,48 @@ -/*********************************************************** -* Rocks'n'Diamonds -- McDuffin Strikes Back! * -*----------------------------------------------------------* -* (c) 1995-98 Artsoft Entertainment * -* Holger Schemel * -* Oststrasse 11a * -* 33604 Bielefeld * -* phone: ++49 +521 290471 * -* email: aeglos@valinor.owl.de * -*----------------------------------------------------------* -* events.h * -***********************************************************/ +// ============================================================================ +// Rocks'n'Diamonds - McDuffin Strikes Back! +// ---------------------------------------------------------------------------- +// (c) 1995-2014 by Artsoft Entertainment +// Holger Schemel +// info@artsoft.org +// http://www.artsoft.org/ +// ---------------------------------------------------------------------------- +// events.h +// ============================================================================ #ifndef EVENTS_H #define EVENTS_H #include "main.h" +boolean NextValidEvent(Event *); + void EventLoop(void); -void HandleOtherEvents(XEvent *); +void HandleOtherEvents(Event *); void ClearEventQueue(void); +void ClearPlayerAction(void); void SleepWhileUnmapped(void); -void HandleExposeEvent(XExposeEvent *); -void HandleButtonEvent(XButtonEvent *); -void HandleMotionEvent(XMotionEvent *); -void HandleKeyEvent(XKeyEvent *); -void HandleFocusEvent(XFocusChangeEvent *); -void HandleClientMessageEvent(XClientMessageEvent *event); +void HandleExposeEvent(ExposeEvent *); +void HandleButtonEvent(ButtonEvent *); +void HandleMotionEvent(MotionEvent *); +#if defined(TARGET_SDL2) +void HandleWheelEvent(WheelEvent *); +void HandleWindowEvent(WindowEvent *); +void HandleFingerEvent(FingerEvent *); +void HandleTextEvent(TextEvent *); +void HandlePauseResumeEvent(PauseResumeEvent *); +#endif +void HandleKeysDebug(Key); +void HandleKeyEvent(KeyEvent *); +void HandleFocusEvent(FocusChangeEvent *); +void HandleClientMessageEvent(ClientMessageEvent *); +void HandleWindowManagerEvent(Event *); -void HandleNoXEvent(void); +void HandleNoEvent(void); +void HandleToonAnimations(void); -void HandleButton(int, int, int); -void HandleKey(KeySym, int); +void HandleButton(int, int, int, int); +void HandleKey(Key, int); void HandleJoystick(); #endif