britzl / extension-filedrop

This extension provides a unified, simple to use interface to handle drag and drop of files onto a Defold application
MIT License
8 stars 2 forks source link

Add support for Windows OS #6

Open m-amin-prf opened 6 months ago

britzl commented 6 months ago

WM_DROPFILES

https://github.com/gametutorials/tutorials/blob/master/Win32/Drag%20And%20Drop/Main.cpp

Insality commented 2 months ago

Vote for feature

Want to use dragndrop in Panthera across all platforms

britzl commented 2 months ago

The problem is that we set a window style without the required WS_EX_ACCEPTFILES flag in win32_window.c

https://github.com/defold/defold/blob/dev/external/glfw/lib/win32/win32_window.c#L1303-L1352

I'm going to see if it is possible to change the window style after the window has been created.

britzl commented 2 months ago

I'm going to see if it is possible to change the window style after the window has been created.

Ah, yes, it is possible! This is done by for instance DefOS.