Open jstimpfle opened 3 years ago
@jstimpfle I was having the same problem. I think that's an error. Also, the file glfw.rkt is outdated. I'm going to update it in the next days. Meanwhile, consider using this branch (still unfinished).
I have made a pull request with the update.
Hello,
I tried out this library and with my brand new racket installation, the GLFW function setter functions did not work. For example,
would result in an error
The reason seems to be that all the GLFW function types in this library are defined like
(GLFWkeyfun (_ptr o (_fun _pointer _int _int _int _int -> _void)))
On my computer, the above program runs without error (and catches key presses) if I remove the
_ptr
wrap around the_fun
spec:(GLFWkeyfun (_fun _pointer _int _int _int _int -> _void))
Maybe this is due to a change in the Racket FFI? Maybe I was doing something wrong? I can't know, I'm just trying Racket for the first time. If it's a problem in this library, it would be great if you could update.
Kind regards, Jens