使用 GLFW-b 拖放

Drag & Drop with GLFW-b

如何使用 GLFW-b 包响应拖放事件? GLFW 网站上列出了一个 glfwSetDropCallback 函数,但它似乎已被排除在 Haskell 绑定之外。

GLFW-b 依赖于低级 bindings-GLFW package, which does include the aforementioned function (defined in input.c) and the release note 版本 3.1 甚至列出了新功能中的拖放功能。

这只是意外遗漏还是存在我不知道的跨平台拖放问题?

GLFW-b 包的 C 端支持下拉回调,但 bindings-GLFW 和 [=] 的 FFI/Haskell 端不支持10=].

我为这两个包创建了分支(和拉取请求),请参阅:

https://github.com/lamdu/bindings-GLFW

https://github.com/lamdu/GLFW-b

拖放支持现在位于 GLFW-b Haskell 包中。