libinput is a library to handle input devices in Wayland compositors and to provide a generic X.Org input driver https://www.freedesktop.org/wiki/Software/libinput/