evdev: check for ABS_MT_POSITION_X/Y to determine mt devices
authorPeter Hutterer <peter.hutterer@who-t.net>
Thu, 8 Aug 2013 02:03:08 +0000 (12:03 +1000)
committerJonas Ådahl <jadahl@gmail.com>
Sun, 10 Nov 2013 16:51:32 +0000 (17:51 +0100)
commit297bac98026a630f789b923aab1be8eba89ccd09
treece499fa1fe255f7380c78561a6f34360158e7cb8
parent420fbad8bb72cb5ad48bde5a73edca1debdd764e
evdev: check for ABS_MT_POSITION_X/Y to determine mt devices

mtdev as currently used in weston is a noop. mtdev's purpose is to convert
Protocol A devices (without ABS_MT_SLOT) to Protocol B devices (slots).
For Protocol B devices mtdev merely routes the events, so checking for
slots and then using mtdev based on that adds no functionality.

Check for ABS_MT_POSITION_X/Y instead and use that to categorise a device
as MT device. mtdev will provide us with a slotted protocol for all devices.

https://bugs.freedesktop.org/show_bug.cgi?id=54428
src/evdev.c