An event used to request a file open by the system (event.drop.*)
Defined in SDL_events.h
typedef struct SDL_DropEvent
{/**< SDL_DROPBEGIN or SDL_DROPFILE or SDL_DROPTEXT or SDL_DROPCOMPLETE */
Uint32 type; /**< In milliseconds, populated using SDL_GetTicks() */
Uint32 timestamp; char *file; /**< The file name, which should be freed with SDL_free(), is NULL on begin/complete */
/**< The window that was dropped on, if any */
Uint32 windowID; } SDL_DropEvent;
This event is enabled by default, you can disable it with SDL_EventState().
If this event is enabled, you must free the filename in the event.