libinput/test
Peter Hutterer e192ecc6e9 touchpad: Add clickpad-style software buttons
Almost all non Apple touchpads have visible markings for software button areas,
so limit clickfinger behavior to Apple clickpads, and implement software button
areas for others.

This is a slightly fancier implementation than the simplest model and ported
over from libtouchpad. It implements a state machine for the software buttons
with left and right buttons currently implemented. Buttons are oriented
left-to-right, in a horizontal bar. No random button placement allowed.

In general, the procedure is:
- if a finger sets down in the left button area, a click is a left click
- if a finger sets down in the right button area, a click is a right click
- if a finger leaves the button area, a click is a left click
- if a finger starts outside the button area, a click is a left click

Two timeouts are used to handle buttons more smoothly:
- if a finger sets down in a button area but "immediately" moves over
  to a different area, that area takes effect on a click.
- if a finger leaves a button area and "immediately" clicks or moves back into
  the area, the button still takes effect on a click.
- if a finger changes between areas and stays there for a timeout, that area
  takes effect on a click.

Note the button area states are named BOTTOM_foo to make it easier to later
add support for a top button area such as can be found on the Thinkpad [2-5]40
series.

Co-authored-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Jonas Ådahl <jadahl@gmail.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
2014-05-22 14:44:55 +02:00
..
build-cxx.cc test: Add include from C++ build test 2014-03-29 00:51:44 +01:00
build-pedantic.c test: add a build-test for -pedantic 2014-01-15 11:26:08 +10:00
keyboard.c test: fix a couple of memleaks in the tests 2014-04-23 12:43:23 +10:00
litest-bcm5974.c test: switch the remaining devices to a description-based device 2014-04-08 15:07:02 +10:00
litest-int.h test: allow for description-based test devices 2014-04-08 15:07:02 +10:00
litest-keyboard.c test: switch the remaining devices to a description-based device 2014-04-08 15:07:02 +10:00
litest-mouse.c test: switch the remaining devices to a description-based device 2014-04-08 15:07:02 +10:00
litest-synaptics-st.c test: switch the remaining devices to a description-based device 2014-04-08 15:07:02 +10:00
litest-synaptics.c test: mark the synaptics clickpad as buttonpad 2014-04-10 11:11:56 +10:00
litest-trackpoint.c test: switch the remaining devices to a description-based device 2014-04-08 15:07:02 +10:00
litest-wacom-touch.c test: switch the remaining devices to a description-based device 2014-04-08 15:07:02 +10:00
litest.c test: Test seat wide button and key count helpers 2014-04-23 00:07:40 +02:00
litest.h test: Test seat wide button and key count helpers 2014-04-23 00:07:40 +02:00
log.c test: plug a couple of memory leaks 2014-03-27 08:46:47 +10:00
Makefile.am test: disable parallel build in test directory 2014-04-24 08:22:54 +10:00
misc.c test: add tests for event conversion and back 2014-04-10 11:11:56 +10:00
path.c test: add litest helper functions for creating uinput devices 2014-04-08 15:07:02 +10:00
pointer.c test: fix a couple of memleaks in the tests 2014-04-23 12:43:23 +10:00
touch.c test: fix a couple of memleaks in the tests 2014-04-23 12:43:23 +10:00
touchpad.c touchpad: Add clickpad-style software buttons 2014-05-22 14:44:55 +02:00
udev.c Make it possible to have persistent libinput_seat instances 2014-02-10 22:28:46 +01:00
valgrind.suppressions test: automatically run the tests against valgrind for leaks 2014-04-10 11:11:56 +10:00