libinput
Libinput is an open-source input device handling library for Linux. It provides a unified API for keyboards, pointers, touchpads, touchscreens, and other input devices, with a focus on use by Wayland compositors. It is also used by the X.Org project through the libinput X driver, enabling X11 environments to benefit from libinput’s input management.
Libinput obtains raw events from the kernel via the evdev interface, using libudev to detect devices. It
Key capabilities include multitouch tracking, gesture recognition (including taps, and two- and three-finger gestures), natural scrolling,
Development and ecosystem: Maintained by the freedesktop.org community as part of the Wayland ecosystem. It is