libinput/tools
Peter Hutterer 8d9e7a1bcf Add an API to change pointer acceleration profiles
The quartett of new config functions is:
	libinput_device_config_accel_get_profiles
	libinput_device_config_accel_get_profile
	libinput_device_config_accel_set_profile
	libinput_device_config_accel_get_default_profile

The profile defines how the pointer acceleration works, from a very high-level
perspective. Two profiles are on offer, "adaptive", the standard one we have
used so far and "flat" which is a simple multiplier of input deltas and
provides 1:1 mapping of device movement vs pointer movement.

The speed setting is on top of the profile, a speed of 0 (default) is the
equivalent to "no pointer acceleration". This is popular among gamers and
users of switchable-dpi mice.

The flat profile unnormalizes the deltas, i.e. you get what the device does
and any device below 800dpi will feel excruciatingly slow. The speed range
[-1, 1] maps into 0-200% of the speed. At 200%, a delta of 1 is translated
into a 2 pixel movement, anything higher makes it rather pointless.

The flat profile is currently available for all pointer devices but touchpads.

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

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
2015-09-11 00:54:01 +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 Add a configuration interface for enabling/disabling disable-while-typing 2015-07-24 08:49:23 +10:00
event-gui.c tools: handle the initial set of events at event-gui's startup 2015-07-21 15:17:54 +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 Add an API to change pointer acceleration profiles 2015-09-11 00:54:01 +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: add shell script for making the pointer acceleration graphs in the docs 2015-08-12 14:06:00 +10:00
ptraccel-debug.c tools: allow filter-switching in ptraccel-debug 2015-08-12 14:06:00 +10:00
publish-doc tools: fix the publish-doc script 2014-06-16 16:44:34 +10:00
shared.c Add an API to change pointer acceleration profiles 2015-09-11 00:54:01 +10:00
shared.h Add an API to change pointer acceleration profiles 2015-09-11 00:54:01 +10:00