tjammer / raylib-ocaml

OCaml bindings for raylib and raygui
https://tjammer.github.io/raylib-ocaml/
MIT License
175 stars 14 forks source link

`Raylib.get_char_pressed` has wrong type #35

Closed gravicappa closed 1 year ago

gravicappa commented 1 year ago

As far as I understand Raylib.get_char_pressed should have type unit -> int(or unit -> Uchar.t) instead of unit -> Raylib.Key.t since it returns unicode code point.

tjammer commented 1 year ago

Hi, thanks for reporting this! Your understanding is correct, this is already fixed on master, see https://github.com/tjammer/raylib-ocaml/issues/34. The change hasn't made it into a release on opam yet, so you have to pin the master branch with opam.

I'll prepare a release to opam soon to distribute this fix

tjammer commented 1 year ago

The fix is now on opam.