diff options
author | Cameron Cawley | 2019-04-15 19:09:33 +0100 |
---|---|---|
committer | Thierry Crozat | 2019-04-30 22:17:04 +0100 |
commit | fb0b63ba66f87431c769eafb0a02a2f85aab9fa9 (patch) | |
tree | a9c1ab0f7e73806dcfc7a3a146425d5e30d792fa /backends/events/sdl | |
parent | 9c29b03c43f4ed1b4c6f08d6616ea330c9b8eca5 (diff) | |
download | scummvm-rg350-fb0b63ba66f87431c769eafb0a02a2f85aab9fa9.tar.gz scummvm-rg350-fb0b63ba66f87431c769eafb0a02a2f85aab9fa9.tar.bz2 scummvm-rg350-fb0b63ba66f87431c769eafb0a02a2f85aab9fa9.zip |
RISCOS: Add Drag and Drop support
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); |