X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fevents.h;h=5c0630e7880fc262b3902348d4d4e6e34600f293;hb=899e06c2695b543b93364993f12b46caa33e6cd7;hp=a809665c9690994b2701be30a3d0873b4a3ab6a8;hpb=d7196292a6cc00acc4292f4920cd63fc16ef3068;p=rocksndiamonds.git diff --git a/src/events.h b/src/events.h index a809665c..5c0630e7 100644 --- a/src/events.h +++ b/src/events.h @@ -14,16 +14,11 @@ #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 ClearAutoRepeatKeyEvents(void); void ClearEventQueue(void); void ClearPlayerAction(void); void SleepWhileUnmapped(void); @@ -31,24 +26,26 @@ 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 HandleDropFileEvent(Event *); +void HandleDropTextEvent(Event *); -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