Libinput

From the libinput wiki page: libinput is a library to handle input devices in Wayland compositors and to provide a generic X.Org input driver. It provides device detection, device handling, input device event processing and abstraction so minimize the amount of custom input code compositors need to provide the common set of functionality that users expect.

libinput
First add to the   variable. Then you can proceed to add the input device:

After the update the packages and  should've been pulled in.

Next you need to update Xorg configuration using /usr/share/X11/xorg.conf.d/60-libinput.conf provided.

After a reboot/xorg-server restart.

libinput-gestures
"Actions gestures on your touchpad using libinput." Follow the install notes from the official project page LIBINPUT-GESTURES on GitHub.

Install dependencies: