ebiten
ebiten copied to clipboard
Drag and drop a file (path)
https://www.glfw.org/docs/3.4/group__input.html#gab773f0ee0a07cff77a210cea40bc1f6b
Mobiles should support this.
e.g. https://developer.android.com/guide/topics/ui/drag-drop
https://support.apple.com/guide/ipad/drag-and-drop-ipadaa83b207/ipados
Should the api be a callback?
Something along the lines of
SetFileDropCallback
Or perhaps something that can be captured in the update func.
Good point. I don't like callback-style API, but, it might be odd to have a function returning the file path and check it every frame. Let me think...