New approach to multitouch using DIDs and bitmasked events

Henrik Rydberg rydberg at bitmath.org
Fri Jul 2 02:00:12 PDT 2010


Chase Douglas wrote:
[...]
> I heuristically determine if a device is a DID by checking whether it
> has valuators for ABS_MT_POSITION_X or ABS_MT_POSITION_Y, but none of
> ABS_X, ABS_Y, REL_X, or REL_Y. This check is performed at valuator class
> device initialization.

The magic mouse is the only MT device in the kernel that sends nothing but MT
events, so this detection method has very limited use. Perhaps a DID does not
have to send only direct motion events?

Thanks,
Henrik



More information about the xorg-devel mailing list