-
Notifications
You must be signed in to change notification settings - Fork 1.7k
SD: File Drop
Lukas Dürrenberger edited this page Aug 5, 2021
·
2 revisions
- Forum Discussion
- Windows Implementation
- SDL Implementation: SDL_DropEvent
SFML has currently no built-in way to handle file drop events/requests, as such they are simply ignored.
On Windows file drop requests are initiated through the normal event pump, this makes it quite difficult for an external library/user code to implement this on their own. There are ways to work around it, but it's not very pretty.
Since it is a feature that is being requested every now and then, and the integration isn't easily possible, this solution design should help to look at the existing options, possible implementations, and the best way to integrate it into SFML.
Why do we need this? What are the advantages? What are limitations does this introduce? Does this align with the principles of SFML?
DragAcceptFiles(...)
DragQueryFile(...)
DragQueryPoint(...)
DragFinish(...)
- Event
WM_DROPFILES