Peter Hutterer peter.hutterer at
Thu Nov 4 16:21:50 PDT 2010

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.


> When i start my program that uses two mice for different functions
> (one in each hand), it would be useful for them both to be assigned
> the correct role whenever the program is started, regardless of
> whatever other devices have been plugged in since the last session.

More information about the xorg mailing list