diff options
Diffstat (limited to 'backends/events/sdl')
-rw-r--r-- | backends/events/sdl/sdl-events.cpp | 6 | ||||
-rw-r--r-- | backends/events/sdl/sdl-events.h | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/backends/events/sdl/sdl-events.cpp b/backends/events/sdl/sdl-events.cpp index 404528ba25..50235171f5 100644 --- a/backends/events/sdl/sdl-events.cpp +++ b/backends/events/sdl/sdl-events.cpp @@ -567,6 +567,8 @@ bool SdlEventSource::dispatchSDLEvent(SDL_Event &ev, Common::Event &event) { return handleMouseButtonDown(ev, event); case SDL_MOUSEBUTTONUP: return handleMouseButtonUp(ev, event); + case SDL_SYSWMEVENT: + return handleSysWMEvent(ev, event); #if SDL_VERSION_ATLEAST(2, 0, 0) case SDL_MOUSEWHEEL: { @@ -860,6 +862,10 @@ bool SdlEventSource::handleMouseButtonUp(SDL_Event &ev, Common::Event &event) { return processMouseEvent(event, ev.button.x, ev.button.y); } +bool SdlEventSource::handleSysWMEvent(SDL_Event &ev, Common::Event &event) { + return false; +} + void SdlEventSource::openJoystick(int joystickIndex) { if (SDL_NumJoysticks() > joystickIndex) { #if SDL_VERSION_ATLEAST(2, 0, 0) diff --git a/backends/events/sdl/sdl-events.h b/backends/events/sdl/sdl-events.h index b26d4cc6bd..8ee51147a4 100644 --- a/backends/events/sdl/sdl-events.h +++ b/backends/events/sdl/sdl-events.h @@ -137,6 +137,7 @@ protected: virtual bool handleMouseMotion(SDL_Event &ev, Common::Event &event); virtual bool handleMouseButtonDown(SDL_Event &ev, Common::Event &event); virtual bool handleMouseButtonUp(SDL_Event &ev, Common::Event &event); + virtual bool handleSysWMEvent(SDL_Event &ev, Common::Event &event); virtual bool handleJoyButtonDown(SDL_Event &ev, Common::Event &event); virtual bool handleJoyButtonUp(SDL_Event &ev, Common::Event &event); virtual bool handleJoyAxisMotion(SDL_Event &ev, Common::Event &event); |