libinput is an input device driver for Wayland compositors and X.org window system.
libinput provides device detection, device handling, input device event processing and abstraction to minimize the amount of custom input code compositors need to provide the common set of functionality that users expect.
Support for Event interface (CONFIG_INPUT_EVDEV) needs to be enabled in the kernel:
KERNEL Enabling Event interface in the kernel Device Drivers ---> Input device support ---> <*> Event interface
Add user to the input group input so devices can be read directly:
sudo usermod -a -G input <user>