X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fevents.h;h=664f3778b83f54b7ba3fec3a7a407c28e4811329;hb=00624d32d516d37f2634bd68598a0b0a944f3aaf;hp=c66145c6c632137b50e93da099b0853f1db86b3e;hpb=3ae70b9d27b4b2c038f35b0aa5985c368542a486;p=rocksndiamonds.git diff --git a/src/events.h b/src/events.h index c66145c6..664f3778 100644 --- a/src/events.h +++ b/src/events.h @@ -1,22 +1,27 @@ -/*********************************************************** -* Rocks'n'Diamonds -- McDuffin Strikes Back! * -*----------------------------------------------------------* -* (c) 1995-2006 Artsoft Entertainment * -* Holger Schemel * -* Detmolder Strasse 189 * -* 33604 Bielefeld * -* Germany * -* e-mail: info@artsoft.org * -*----------------------------------------------------------* -* 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" +#if defined(TARGET_SDL2) +int FilterEvents(void *, Event *); +#else int FilterEvents(const Event *); +#endif + +boolean NextValidEvent(Event *); + void EventLoop(void); void HandleOtherEvents(Event *); void ClearEventQueue(void); @@ -26,12 +31,19 @@ void SleepWhileUnmapped(void); void HandleExposeEvent(ExposeEvent *); void HandleButtonEvent(ButtonEvent *); void HandleMotionEvent(MotionEvent *); +#if defined(TARGET_SDL2) +void HandleWindowEvent(WindowEvent *); +void HandleFingerEvent(FingerEvent *); +void HandleTextEvent(TextEvent *); +void HandlePauseResumeEvent(PauseResumeEvent *); +#endif void HandleKeyEvent(KeyEvent *); void HandleFocusEvent(FocusChangeEvent *); void HandleClientMessageEvent(ClientMessageEvent *); void HandleWindowManagerEvent(Event *); void HandleNoEvent(void); +void HandleToonAnimations(void); void HandleButton(int, int, int, int); void HandleKey(Key, int);