X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Fevents.h;h=3234877318cb54c6333c6d5981a5650ec8f52c0c;hp=931aa7cee9220faa4613cb8603cafbdb41fc571b;hb=115ce6f2da1914d68b0fe0e5f9082973190dacdd;hpb=b9c7e4a42762c8526702726f1404d3e75dbc29f5 diff --git a/src/events.h b/src/events.h index 931aa7ce..32348773 100644 --- a/src/events.h +++ b/src/events.h @@ -1,37 +1,52 @@ -/*********************************************************** -* 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(Event *); +void ClearAutoRepeatKeyEvents(void); void ClearEventQueue(void); +void ClearPlayerAction(void); void SleepWhileUnmapped(void); 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 *event); +void HandleClientMessageEvent(ClientMessageEvent *); +void HandleWindowManagerEvent(Event *); -void HandleNoXEvent(void); +void HandleToonAnimations(void); -void HandleButton(int, int, int); +void HandleButton(int, int, int, int); void HandleKey(Key, int); -void HandleJoystick(); +void HandleJoystick(void); +void HandleSpecialGameControllerButtons(Event *); +void HandleSpecialGameControllerKeys(Key, int); + +boolean DoKeysymAction(int); #endif