diff options
Diffstat (limited to 'backends/events/sdl')
-rw-r--r-- | backends/events/sdl/sdl-events.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/backends/events/sdl/sdl-events.cpp b/backends/events/sdl/sdl-events.cpp index ff5f4b9ce3..404528ba25 100644 --- a/backends/events/sdl/sdl-events.cpp +++ b/backends/events/sdl/sdl-events.cpp @@ -640,6 +640,12 @@ bool SdlEventSource::dispatchSDLEvent(SDL_Event &ev, Common::Event &event) { case SDL_JOYDEVICEREMOVED: return handleJoystickRemoved(ev.jdevice); + + case SDL_DROPFILE: + event.type = Common::EVENT_DROP_FILE; + event.path = Common::String(ev.drop.file); + SDL_free(ev.drop.file); + return true; #else case SDL_VIDEOEXPOSE: if (_graphicsManager) |