I’m pleased to announce the first release of libinput-ocaml (OCaml bindings for the libinput C library).
libinput is used by applications such as Wayland compositors to access mice, keyboards, touch pads, etc.
Linux input devices (with libinput-ocaml) explains how input devices work on Linux, and shows how to use the library to create a little game:
