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)
committerKristian Høgsberg <krh@bitplanet.net>
Thu, 8 Aug 2013 20:46:14 +0000 (13:46 -0700)
commit45d659dd820dc1fd9baee91fdfaba01966ddfd75
treefb77c6d95c62e8860e7bbf3d5e57c6fe443cdad1
parentf3d62276d20750e636fc82bc89b3c4c23576299d
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