X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Fevents.h;h=30a64877dc3b5a4411b5ceb7c2caa4ae60e1dd87;hp=3234877318cb54c6333c6d5981a5650ec8f52c0c;hb=b641818c787e48bbf03ce2a0cd5b542c4c21e523;hpb=115ce6f2da1914d68b0fe0e5f9082973190dacdd diff --git a/src/events.h b/src/events.h index 32348773..30a64877 100644 --- a/src/events.h +++ b/src/events.h @@ -4,7 +4,7 @@ // (c) 1995-2014 by Artsoft Entertainment // Holger Schemel // info@artsoft.org -// http://www.artsoft.org/ +// https://www.artsoft.org/ // ---------------------------------------------------------------------------- // events.h // ============================================================================ @@ -14,30 +14,34 @@ #include "main.h" + +#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 *); -#if defined(TARGET_SDL2) void HandleWheelEvent(WheelEvent *); void HandleWindowEvent(WindowEvent *); void HandleFingerEvent(FingerEvent *); void HandleTextEvent(TextEvent *); void HandlePauseResumeEvent(PauseResumeEvent *); -#endif -void HandleKeysDebug(Key); +boolean HandleKeysDebug(Key, int); void HandleKeyEvent(KeyEvent *); -void HandleFocusEvent(FocusChangeEvent *); -void HandleClientMessageEvent(ClientMessageEvent *); -void HandleWindowManagerEvent(Event *); +void HandleDropEvent(Event *); +void HandleUserEvent(UserEvent *); void HandleToonAnimations(void);