From: Konrad R. <ko...@si...> - 2011-01-20 20:48:25
|
On Thursday 20 January 2011, Pete Batard wrote: > Basically, think of a gaming application, with 2 or more HID (or non > HID) game controllers, and you want to provide users the ability to > identify who is assigned player #1 and who is assigned player #2. Most > of the time these would be plugged on the same hub, so you'd just > provide a real-time onscreen depiction of said hub, and let the players > plug/replug their find out which is which is which. Intuitive, and only > relies on port (and parent_dev) comparison. > If you're doing real-time onscreen description of plugged devices, so > that end users can intuitively identify them by plugging/replugging, > there's usually no need to go to root. Just a comparison of port # and > parent_dev for devices that are currently plugged will do. > > Does such a scenario make sense to you now? Wouldn't it be easier after identifying the devices to remember the serial number of the two devices? As a user I personally wouldn't really remember that my device was plugged into port 2 or port 42, I would remember though that mine is the one with the Amun Ra fan sticker on it. Of course the computer can't see the sticker, but the corresponding serial number. On the other hand I don't think that in this particular case it would hurt to ask the users to push a specific button before the game starts each time. Konrad |