libinput/tools
Peter Hutterer bdd4264d61 filter: change the filter functions to take raw device coordinates
We used to normalize all deltas to equivalents of a 1000dpi mouse before
passing it into the acceleration functions. This has a bunch of drawbacks, not
least that we already have to un-normalize back into device units for a few
devices already (trackpoints, tablet, low-dpi mice).

Switch the filter code over to use device units, relying on the dpi set
earlier during filter creation to convert to normalized. To make things easy,
the output of the filter code is still normalized data, i.e. data ready to be
handed to the libinput caller.

No effective functional changes. For touchpads, we still send normalized
coordinates (for now, anyway). For the various filter methods, we either drop
the places where we unnormalized before or we normalize where needed.

Two possible changes: for trackpoints and low-dpi mice we had a max dpi factor
of 1.0 before - now we don't anymore. This was only the case if a low-dpi
mouse had more than 1000dpi (never true) or a trackpoint had a const accel
lower than 1.0 (yeah, whatever).

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
2016-12-21 10:55:57 +10:00
..
.gitignore tools: ship the event-debug tool as an installed libinput-debug-events tool 2015-04-30 19:20:49 +10:00
event-debug.c tools: print pointer axis source in event-debug 2016-11-29 12:14:05 +10:00
event-gui.c tools: fix comment wording 2016-12-06 11:02:13 +10:00
libinput-debug-events.man tools: ship the event-debug tool as an installed libinput-debug-events tool 2015-04-30 19:20:49 +10:00
libinput-list-devices.c tools: include config.h in libinput-list-devices and ptraccel-debug 2016-12-06 11:02:14 +10:00
libinput-list-devices.man tools: fix typo in man page 2015-04-30 16:44:43 +10:00
make-ptraccel-graphs.sh tools: add shell script for making the pointer acceleration graphs in the docs 2015-08-12 14:06:00 +10:00
Makefile.am tools: make sure GCC_FLAGS is used in tools/ 2016-12-06 11:02:14 +10:00
ptraccel-debug.c filter: change the filter functions to take raw device coordinates 2016-12-21 10:55:57 +10:00
publish-doc tools: update the doc publish tool to take a subdir 2016-04-12 07:56:52 +10:00
shared.c tools: fix signed/unsigned comparison warnings 2016-12-06 11:02:13 +10:00
shared.h tools: fix prototype for tools_usage 2016-12-06 08:06:27 +10:00