-void SDLHandleWindowManagerEvent(Event *event)
-{
-#ifdef DEBUG
-#if defined(PLATFORM_WIN32)
- // experimental drag and drop code
-
- SDL_SysWMEvent *syswmevent = (SDL_SysWMEvent *)event;
- SDL_SysWMmsg *syswmmsg = (SDL_SysWMmsg *)(syswmevent->msg);
-
- if (syswmmsg->msg.win.msg == WM_DROPFILES)
- {
- HDROP hdrop = (HDROP)syswmmsg->msg.win.wParam;
- int i, num_files;
-
- printf("::: SDL_SYSWMEVENT:\n");
-
- num_files = DragQueryFile(hdrop, 0xffffffff, NULL, 0);
-
- for (i = 0; i < num_files; i++)
- {
- int buffer_len = DragQueryFile(hdrop, i, NULL, 0);
- char buffer[buffer_len + 1];
-
- DragQueryFile(hdrop, i, buffer, buffer_len + 1);
-
- printf("::: - '%s'\n", buffer);
- }
-
- DragFinish((HDROP)syswmmsg->msg.win.wParam);
- }
-#endif
-#endif
-}
-