X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fevents.h;h=2b1022b0e442dba5b522d55d17b88d00b47e5da7;hb=19d38b8a650bd10ffbbaed031f5b3819dbcd32ce;hp=b5e522812b2076a5426bc5f8510576682d831d3b;hpb=2ae6ae8ed951e87fcba7c363705cd6ddea8de91c;p=rocksndiamonds.git diff --git a/src/events.h b/src/events.h index b5e52281..2b1022b0 100644 --- a/src/events.h +++ b/src/events.h @@ -1,7 +1,7 @@ /*********************************************************** * Rocks'n'Diamonds -- McDuffin Strikes Back! * *----------------------------------------------------------* -* (c) 1995-2000 Artsoft Entertainment * +* (c) 1995-2006 Artsoft Entertainment * * Holger Schemel * * Detmolder Strasse 189 * * 33604 Bielefeld * @@ -16,22 +16,35 @@ #include "main.h" -int FilterMouseMotionEvents(const Event *); +#if defined(TARGET_SDL2) +int FilterEvents(void *, Event *); +#else +int FilterEvents(const Event *); +#endif + void EventLoop(void); void HandleOtherEvents(Event *); void ClearEventQueue(void); +void ClearPlayerAction(void); 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 *); +#endif void HandleKeyEvent(KeyEvent *); void HandleFocusEvent(FocusChangeEvent *); -void HandleClientMessageEvent(ClientMessageEvent *event); +void HandleClientMessageEvent(ClientMessageEvent *); +void HandleWindowManagerEvent(Event *); void HandleNoEvent(void); +void HandleToonAnimations(void); -void HandleButton(int, int, int); +void HandleButton(int, int, int, int); void HandleKey(Key, int); void HandleJoystick();