I have also been fighting with this for a short while today, and I can’t seem to be able to find a way to make it work.
I’m compiling for Windows (x86) and I use the latest SDL 2 revision from the HG repository; in fact I updated to try the drag’n drop
I include this header (is it really required?)
#include “SDL_syswm.h”
I then enable the event:
SDL_EventState(SDL_DROPFILE, SDL_ENABLE) ;
After that if I put a breakpoint on the event loop I can verify I never get a “SDL_DROPFILE” event. If I try to drag a file to the program window I get the cursor that indicates that I’m trying to do something that can’t be done :?
It’s currently only implemented on Mac OS X. Feel free to contribute a
patch for other platforms!On Sat, Sep 29, 2012 at 2:53 PM, Manuel Montoto <g.manu at teleline.es> wrote:
**
I have also been fighting with this for a short while today, and I can’t
seem to be able to find a way to make it work.
I’m compiling for Windows (x86) and I use the latest SDL 2 revision from
the HG repository; in fact I updated to try the drag’n drop [image: Smile]
I include this header (is it really required?)
#include “SDL_syswm.h”
I then enable the event:
SDL_EventState(SDL_DROPFILE, SDL_ENABLE) ;
After that if I put a breakpoint on the event loop I can verify I never
get a “SDL_DROPFILE” event. If I try to drag a file to the program window I
get the cursor that indicates that I’m trying to do something that can’t be
done [image: Confused]