libinput/test
Peter Hutterer df83144457 touchpad: impose maximum distance limits on clickfingers
A common use-case for clickfinger is to use the index finger for moving the
pointer, then triggering the click with a thumb. If the index finger isn't
lifted before the click this counted as two-finger click.

To avoid this, check the distance between touches on the touchpad (on
touchpads reporting resolution values anyway). If the touches are too far
apart, don't count them together (or specifically only count those close
enough together as multi-finger).

The touch area is uneven, it's wider than high. Spreading fingers horizontally
is more common and this also makes it easier to rule out thumbs which tend to
be well below the fingers.

http://bugs.freedesktop.org/show_bug.cgi?id=90526

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
2015-06-03 14:43:58 +10:00
..
50-litest.conf test: Prefix litest created device names with litest 2014-06-25 11:11:45 +10:00
build-cxx.cc test: Add include from C++ build test 2014-03-29 00:51:44 +01:00
build-pedantic.c Fix a couple of coding style issues 2015-05-01 12:09:57 +10:00
device.c touchpad: be finer-grained about when to pair touchpads/keyboard for DWT 2015-05-27 17:38:25 +10:00
keyboard.c test: move main() into litest 2015-05-22 08:45:33 +10:00
litest-alps-semi-mt.c cosmetic: more duplicate empty line removal 2015-03-02 16:48:51 +10:00
litest-atmel-hover.c touchpad: add support for per-finger hovering information 2015-05-07 14:40:53 +10:00
litest-bcm5974.c test: bcm5974: down should be marked as static 2015-05-06 15:08:22 +10:00
litest-generic-singletouch.c test: add a generic single-touch device 2014-08-26 13:49:16 +10:00
litest-int.h test: add per-device udev rule support 2015-02-03 10:34:26 +10:00
litest-keyboard-razer-blackwidow.c test: add the Razer BlackWidow keyboard device 2015-04-08 11:42:50 +02:00
litest-keyboard.c style fix: Remove duplicate empty lines 2014-07-22 09:00:45 +10:00
litest-logitech-trackball.c evdev: enable button scrolling by default on mice without wheels 2015-04-28 17:12:31 +10:00
litest-mouse-roccat.c test: add LITEST_KEYS to roccat mouse features 2015-04-27 09:45:08 +10:00
litest-mouse.c test: drop empty test device interfaces 2015-01-06 09:53:25 +10:00
litest-ms-surface-cover.c test: upgrade to the Microsoft Surface Type Cover 2015-04-28 07:45:39 +10:00
litest-protocol-a-touch-screen.c test: add protocol A touch screen tests 2015-03-02 12:45:47 +10:00
litest-qemu-usb-tablet.c test: add QEMU tablet as test device 2014-11-11 09:55:42 +10:00
litest-selftest.c test: add pointer comparison macros 2015-05-18 20:55:48 +10:00
litest-synaptics-hover.c test: add a semi-mt + hover synaptics touchpad 2015-01-16 07:42:50 +10:00
litest-synaptics-st.c test: auto-update for BTN_TOOL_* when using litest_touch_ functions 2014-07-23 15:08:15 +10:00
litest-synaptics-t440.c test: auto-update for BTN_TOOL_* when using litest_touch_ functions 2014-07-23 15:08:15 +10:00
litest-synaptics-x1-carbon-3rd.c test: add per-device udev rule support 2015-02-03 10:34:26 +10:00
litest-synaptics.c test: auto-update for BTN_TOOL_* when using litest_touch_ functions 2014-07-23 15:08:15 +10:00
litest-trackpoint.c test: drop empty test device interfaces 2015-01-06 09:53:25 +10:00
litest-vmware-virtual-usb-mouse.c test: add VMWare Virtual USB Mouse device 2014-11-11 09:55:42 +10:00
litest-wacom-intuos-finger.c test: add a Wacom Intuos 5 Finger test device 2015-03-05 13:30:49 +10:00
litest-wacom-touch.c test: drop unused includes for libinput-util.h 2014-06-11 09:43:52 +10:00
litest-wheel-only.c test: add a scrollwheel-only device 2015-04-13 11:48:38 +02:00
litest-xen-virtual-pointer.c test: add Xen Virtual Pointer device 2014-11-11 09:55:42 +10:00
litest.c test: check getcwd() and system() return values in litest 2015-06-02 11:19:12 +10:00
litest.h test: add disable-while-typing tests 2015-05-27 17:38:25 +10:00
log.c Merge branch 'litest-filter-tests' 2015-05-22 09:15:15 +10:00
Makefile.am Merge branch 'litest-filter-tests' 2015-05-22 09:15:15 +10:00
misc.c Merge branch 'litest-filter-tests' 2015-05-22 09:15:15 +10:00
path.c test: move main() into litest 2015-05-22 08:45:33 +10:00
pointer.c Merge branch 'litest-filter-tests' 2015-05-22 09:15:15 +10:00
symbols-leak-test.in add simple symbols leak checker 2015-02-13 10:20:44 +10:00
touch.c test: address gcc warnings on potentially uninitialized variables. 2015-06-01 09:59:58 +10:00
touchpad.c touchpad: impose maximum distance limits on clickfingers 2015-06-03 14:43:58 +10:00
trackpoint.c evdev: use the button down time for no-scroll middle button press event 2015-06-02 09:01:18 +10:00
udev.c Add streq() helper to use instead of strcmp() == 0 2015-05-26 08:46:05 +10:00
valgrind.suppressions test: add a backtrace facility to litest 2015-05-18 20:55:48 +10:00