On Sun, Nov 07, 2010 at 02:56:51PM +0100, Simon Thum wrote: > On 11/05/10 00:21, Peter Hutterer wrote: > > On Thu, Nov 04, 2010 at 10:35:29PM +1100, Russell Shaw wrote: > >> In XInput2, when i get a XI_HierarchyChanged event after plugging in > >> another mouse, is there a way to get a unique identifier for each device > >> such as a brand and model number? > > > > no, the device ID is unfortunately the only identifier you have. > > model/vendor information, etc. isn't exported by any driver yet. > Wouldn't the config backend be in an ideal position to create reasonably > stable identifiers? If one can be built, the backend might add an input > property, e.g. "Device Stable Identifier". > > Would you like to see such a patch?
Peter Korsgaard wrote one ages ago, see the link below. http://lists.x.org/archives/xorg-devel/2010-May/008348.html main problem is that there's no platform-independent way for the stable identifiers Peter suggested. adding vendor/device id is an alternative solution, but you lose out once you plug two identical devices in. Cheers, Peter _______________________________________________ [email protected]: X.Org support Archives: http://lists.freedesktop.org/archives/xorg Info: http://lists.freedesktop.org/mailman/listinfo/xorg Your subscription address: [email protected]
