Gamepad focus model (Re: Input and games.)

Todd Showalter todd at electronjump.com
Mon May 13 06:43:56 PDT 2013


On Mon, May 13, 2013 at 2:33 AM, David Herrmann <dh.herrmann at gmail.com> wrote:

> That is why the kernel provides "PHYS" and "UNIQ" fields for every
> input device (they might be empty if not implemented, but at least
> they're supposed to be there..). "PHYS" provides the physical location
> for the device. "UNIQ" provides a unique identification.

    PHYS is potentially useful, but not reliable; there are often
several USB ports near each other, and the player may not re-plug the
device in the same one, especially if they are on the back of the
machine.  With wireless setups we can't be sure that PHYS will be
identical between connections.  Still, it's useful as a hint.

    UNIQ has been an empty string on every USB input device I've
encountered.  I need to get bluetooth set up (my PC has no bluetooth
hardware, I need to buy a card or something), so i can't say whether
wireless devices provide useful UNIQ values.

                                           Todd.

--
 Todd Showalter, President,
 Electron Jump Games, Inc.


More information about the wayland-devel mailing list