test: handle ABS_MT_TOOL_TYPE from the litest devices
authorPeter Hutterer <peter.hutterer@who-t.net>
Fri, 13 Jul 2018 06:24:04 +0000 (16:24 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Fri, 3 Aug 2018 03:29:20 +0000 (13:29 +1000)
commitabab7f1609500aa7066812d504ebab7647159843
tree17319920dd4e4c2d9babea1f84a9a4c3b323959e
parent2855e26d6f436f181f9944d96d3627b3d417ce42
test: handle ABS_MT_TOOL_TYPE from the litest devices

We want to autoreplace this value where possible but not scale it to min/max,
this is effectively an enum. The same is true for slot/tracking id, so let's
add it here too.

Because it's an enum and 99% of the cases require MT_TOOL_FINGER, we always
fall back to that instead of using the axis_defaults that we use for other
axes.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
test/litest.c