ebiten icon indicating copy to clipboard operation
ebiten copied to clipboard

Drag and drop a file (path)

Open hajimehoshi opened this issue 3 years ago • 3 comments

https://www.glfw.org/docs/3.4/group__input.html#gab773f0ee0a07cff77a210cea40bc1f6b

hajimehoshi avatar Nov 08 '21 09:11 hajimehoshi

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

hajimehoshi avatar Nov 08 '21 10:11 hajimehoshi

Should the api be a callback?

Something along the lines of

SetFileDropCallback

Or perhaps something that can be captured in the update func.

tomlister avatar Dec 06 '21 13:12 tomlister

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...

hajimehoshi avatar Dec 06 '21 14:12 hajimehoshi