tools: add a tool to estimate the resolution of a mouse
authorPeter Hutterer <peter.hutterer@who-t.net>
Mon, 17 Nov 2014 05:52:24 +0000 (15:52 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Thu, 20 Nov 2014 23:42:12 +0000 (09:42 +1000)
commitbb406fe411223000cbe80dd517194780a521ca71
tree48f0602688c0e822965fdbeb1f454f5600eeab00
parent3320407c1205896a9d46f7c872ee34eacd9781c9
tools: add a tool to estimate the resolution of a mouse

Relative devices don't provide a physical resolution to the host. For things
like pointer acceleration, the physical amount of movement is better as
baseline than the movement in device units.

Alas, many devices don't come with any information at all, so the users have
to guess. Help that guesswork by providing a tool that does the calculations
for them.

This tool measures the device units covered, then prints the frequency and an
lookup table for various resolutions (in dpi) to match to the physical
movement of the device.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
tools/.gitignore
tools/Makefile.am
tools/mouse-dpi-tool.c [new file with mode: 0644]