@hackage evdev2.0.0.1

Bindings to libevdev

Evdev

This library provides access to the Linux evdev interface, for reading input events from devices. It uses c2hs-generated bindings to libevdev, which should be available on almost any modern Linux distro.

It aims to expose the full set of functionality exposed by libevdev, while providing stronger types, and a higher level of abstraction - no worrying about memory management, ordering of operations etc.

Your user will need to be a member of the input group in order to read from devices. Try usermod -a -G input [username].

For a higher-level, more functional API based on event streams, see evdev-streamly.