touchscreen, tap, and five finger gesture events
libinput debug-gestures to handle tap gestures, five finger gestures and touchscreen gestures.
- This means that tapping the touchpad with 4 or 5 fingers is recognized as a gesture.
5 finger gestures
- This means that you can place 5 fingers on the touchpad and that is recognized as another class of gestures.
- Extend gestures to touchscreen.
Machines like surface book have capability for five finger gestures and touchscreen gestures.
Event code 328 (BTN_TOOL_QUINTTAP) is the event code for five finger gestures. Touchscreen event codes also mirror touchpad ones, making them easy to handle by modifying code for a touchpad driver based on slot event codes.
Implementation in Other Systems
I have implemented a proof-of-concept script in python built upon
evtest. It is possible to transfer the logic to c.