libinput/test
Peter Hutterer ef48c07a96 touchpad: reset the motion history on significant negative pressure changes
Resetting the motion history has the side-effect of swallowing movements, we
don't calculate deltas until we have 4 motion events. During a finger release,
we're likely to get a large pressure change between two events, resetting the
motion history prevents the cursor from jumping on release.

The value of 7 found by trial-and-error, tested on the T440 and T450 hardware.
The absolute value is highly variable but recordings show that the pressure
changes only by 1 or 2 units during normal interaction. Higher pressure
changes are during finger position changes but since those should not cause a
jump anyway, we tend to win there too.

Currently only enabled for negative pressure changes, let's see how we go with
that. This is enabled for all touchpads now, but the value may need
device-specific thresholds in the future.

https://bugs.freedesktop.org/show_bug.cgi?id=94379

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
2016-04-04 12:11:30 +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 evdev: disable the mode button on the Cyborg RAT 5 2016-02-01 08:37:41 +10:00
gestures.c test: check for BTN_TOOL_QUADTAP in the 4fg btntool tests 2016-02-04 13:50:49 +10:00
keyboard.c Change to micro seconds for measuring time internally 2015-07-28 17:42:32 +08:00
litest-device-alps-dualpoint.c test: prefix all test device files with litest-device 2015-07-13 09:11:26 +10:00
litest-device-alps-semi-mt.c test: prefix all test device files with litest-device 2015-07-13 09:11:26 +10:00
litest-device-anker-mouse-kbd.c evdev: only reject devices with missing MT x/y if they're MT devices 2016-01-12 09:07:36 +10:00
litest-device-apple-internal-keyboard.c touchpad: fix DWT pairing for Macbook Pro 2015 2016-01-11 10:11:32 +10:00
litest-device-asus-rog-gladius.c evdev: init pointer acceleration for any device with pointer cap and rel x/y 2015-10-30 11:18:18 +10:00
litest-device-atmel-hover.c test: prefix all test device files with litest-device 2015-07-13 09:11:26 +10:00
litest-device-bcm5974.c test: prefix all test device files with litest-device 2015-07-13 09:11:26 +10:00
litest-device-cyborg-rat-5.c evdev: disable the mode button on the Cyborg RAT 5 2016-02-01 08:37:41 +10:00
litest-device-elantech-touchpad.c test: add an Elantech touchpad device 2015-07-13 09:11:28 +10:00
litest-device-generic-singletouch.c test: prefix all test device files with litest-device 2015-07-13 09:11:26 +10:00
litest-device-huion-pentablet.c test: fix a bunch of tablet tests for pressure threshold introduction 2016-01-11 15:17:46 +10:00
litest-device-keyboard-razer-blackwidow.c test: prefix all test device files with litest-device 2015-07-13 09:11:26 +10:00
litest-device-keyboard.c test: prefix all test device files with litest-device 2015-07-13 09:11:26 +10:00
litest-device-logitech-trackball.c test: prefix all test device files with litest-device 2015-07-13 09:11:26 +10:00
litest-device-magic-trackpad.c test: prefix all test device files with litest-device 2015-07-13 09:11:26 +10:00
litest-device-mouse-low-dpi.c test: prefix all test device files with litest-device 2015-07-13 09:11:26 +10:00
litest-device-mouse-roccat.c test: prefix all test device files with litest-device 2015-07-13 09:11:26 +10:00
litest-device-mouse-wheel-click-angle.c test: add a device to check MOUSE_WHEEL_CLICK_ANGLE handling 2015-11-09 16:06:26 +10:00
litest-device-mouse.c test: prefix all test device files with litest-device 2015-07-13 09:11:26 +10:00
litest-device-ms-surface-cover.c test: prefix all test device files with litest-device 2015-07-13 09:11:26 +10:00
litest-device-nexus4-touch-screen.c test: prefix all test device files with litest-device 2015-07-13 09:11:26 +10:00
litest-device-protocol-a-touch-screen.c test: prefix all test device files with litest-device 2015-07-13 09:11:26 +10:00
litest-device-qemu-usb-tablet.c test: prefix all test device files with litest-device 2015-07-13 09:11:26 +10:00
litest-device-synaptics-hover.c test: fix the udev rule for the synaptics hover device 2016-02-04 16:26:29 +10:00
litest-device-synaptics-i2c.c touchpad: if we have a serio keyboard, override any previous dwt pairing 2016-02-05 07:43:25 +10:00
litest-device-synaptics-st.c test: prefix all test device files with litest-device 2015-07-13 09:11:26 +10:00
litest-device-synaptics-t440.c test: prefix all test device files with litest-device 2015-07-13 09:11:26 +10:00
litest-device-synaptics-x1-carbon-3rd.c test: apply the new t450 model flag to our X1 3rd test device 2016-03-29 11:59:41 +10:00
litest-device-synaptics.c test: prefix all test device files with litest-device 2015-07-13 09:11:26 +10:00
litest-device-touch-screen.c test: prefix all test device files with litest-device 2015-07-13 09:11:26 +10:00
litest-device-trackpoint.c test: prefix all test device files with litest-device 2015-07-13 09:11:26 +10:00
litest-device-vmware-virtual-usb-mouse.c test: prefix all test device files with litest-device 2015-07-13 09:11:26 +10:00
litest-device-wacom-bamboo-tablet.c test: add pressure axes to proximity in for the bamboo and the cintiq 2015-12-15 08:08:16 +10:00
litest-device-wacom-cintiq-24hd.c test: add Wacom Cintiq 24HD Pen 2016-02-11 16:02:22 +10:00
litest-device-wacom-cintiq-tablet.c tablet: add tilt tests 2015-12-21 09:47:31 +10:00
litest-device-wacom-intuos-finger.c test: prefix all test device files with litest-device 2015-07-13 09:11:26 +10:00
litest-device-wacom-intuos-tablet.c tablet: add tilt tests 2015-12-21 09:47:31 +10:00
litest-device-wacom-isdv4-tablet.c test: fix a bunch of tablet tests for pressure threshold introduction 2016-01-11 15:17:46 +10:00
litest-device-wacom-touch.c test: prefix all test device files with litest-device 2015-07-13 09:11:26 +10:00
litest-device-waltop-tablet.c test: fix a bunch of tablet tests for pressure threshold introduction 2016-01-11 15:17:46 +10:00
litest-device-wheel-only.c test: prefix all test device files with litest-device 2015-07-13 09:11:26 +10:00
litest-device-xen-virtual-pointer.c test: prefix all test device files with litest-device 2015-07-13 09:11:26 +10:00
litest-device-yubikey.c touchpad: if we have a serio keyboard, override any previous dwt pairing 2016-02-05 07:43:25 +10:00
litest-int.h Merge branch 'master' into tablet-support 2015-08-26 14:24:16 +10:00
litest-selftest.c test: fix compiler warning 2016-01-20 12:56:35 +10:00
litest.c touchpad: reset the motion history on significant negative pressure changes 2016-04-04 12:11:30 +10:00
litest.h touchpad: reset the motion history on significant negative pressure changes 2016-04-04 12:11:30 +10:00
log.c COPYING: Update boilerplate from MIT X11 to MIT Expat license 2015-06-16 14:36:04 +10:00
Makefile.am test: add Wacom Cintiq 24HD Pen 2016-02-11 16:02:22 +10:00
misc.c test: add a simple test to guard against wrong library version changes 2016-02-10 15:03:25 +10:00
path.c test: add two path tests for invalid devices 2016-03-03 09:19:36 +10:00
pointer.c tablet: enable the calibration matrix for internal tablets 2015-12-09 09:01:03 +10:00
symbols-leak-test.in add simple symbols leak checker 2015-02-13 10:20:44 +10:00
tablet.c tablet: use the tilt resolution if we have it 2016-02-23 14:42:35 +10:00
touch.c Change to micro seconds for measuring time internally 2015-07-28 17:42:32 +08:00
touchpad-buttons.c test: move the helper functions to the litest.h file 2015-07-31 09:14:21 +10:00
touchpad-tap.c touchpad: add a config option to disable tap-and-drag 2016-01-27 10:03:28 +10:00
touchpad.c touchpad: reset the motion history on significant negative pressure changes 2016-04-04 12:11:30 +10:00
trackpoint.c COPYING: Update boilerplate from MIT X11 to MIT Expat license 2015-06-16 14:36:04 +10:00
udev.c Assert that the interface is actually filled in. 2016-03-07 13:05:26 +10:00
valgrind.suppressions Merge branch 'master' into tablet-support 2015-05-22 14:21:21 +10:00