-
Peter Hutterer authored
The kernel requires absolute axes to fit into the semantic ABS_ naming scheme but doesn't provide enough free bits unlabelled axes. Devices with many axes run into the ABS_MT range and look like MT devices when they're not. See http://www.freedesktop.org/software/libevdev/doc/1.3/group__mt.html Affected is e.g. the MS Surface 2 touch cover that has codes [41, 62] set for min/max [-127, 127]. No special handling needed other than forcing has_mt/has_touch to be 0. ABS_MT_* events from non-touch devices are discarded by libinput. The has_mt/has_touch = 0 isn't needed, but looks nicer than an empty if body. Fixes https://bugs.freedesktop.org/show_bug.cgi?id=85836 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
f04f5821