X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fevents.h;h=5cb33086b780f9c992dfccc30e52013ce40e75b2;hb=1a22e8bdd70708d1ee0bb3f21a456eca4e3de50a;hp=c66145c6c632137b50e93da099b0853f1db86b3e;hpb=3ae70b9d27b4b2c038f35b0aa5985c368542a486;p=rocksndiamonds.git diff --git a/src/events.h b/src/events.h index c66145c6..5cb33086 100644 --- a/src/events.h +++ b/src/events.h @@ -1,40 +1,56 @@ -/*********************************************************** -* 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" -int FilterEvents(const Event *); + +#define USEREVENT_NONE 0 +#define USEREVENT_ANIM_DELAY_ACTION 1 +#define USEREVENT_ANIM_EVENT_ACTION 2 +#define USEREVENT_GADGET_PRESSED 3 + + +int FilterMouseMotionEvents(void *, Event *); +boolean NextValidEvent(Event *); +void StopProcessingEvents(void); + 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 *); +void HandleWheelEvent(WheelEvent *); +void HandleWindowEvent(WindowEvent *); +void HandleFingerEvent(FingerEvent *); +void HandleTextEvent(TextEvent *); +void HandlePauseResumeEvent(PauseResumeEvent *); +boolean HandleKeysDebug(Key, int); void HandleKeyEvent(KeyEvent *); -void HandleFocusEvent(FocusChangeEvent *); -void HandleClientMessageEvent(ClientMessageEvent *); -void HandleWindowManagerEvent(Event *); +void HandleDropEvent(Event *); +void HandleUserEvent(UserEvent *); -void HandleNoEvent(void); +void HandleToonAnimations(void); 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