Hikari9 / comfortable-swipe

Comfortable 3-finger and 4-finger swipe gesture using Xdotool in native C++
GNU General Public License v3.0
557 stars 46 forks source link

Use libinput library instead of libinput debug-events #60

Open Hikari9 opened 5 years ago

Hikari9 commented 5 years ago

This is a feature proposal to use libinput C library itself instead of parsing libinput debug-events.

Hikari9 commented 5 years ago

This is a mirror of the source code for libinput-debug-events CLI command:

https://github.com/wayland-project/libinput/blob/master/tools/libinput-debug-events.c

We can improve our C++ library by:

  1. Including libinput directly to source with #include <libinput.h>
  2. Narrowing down input device with LIBINPUT_DEVICE_CAP_GESTURE
  3. Using libinput_event* type to capture gesture events instead of matching regex