Mapping XInput devices to /dev node
Nicolas Trangez
eikke at eikke.com
Tue Jul 17 08:27:25 PDT 2007
On Tue, 2007-07-17 at 23:41 +0930, Peter Hutterer wrote:
> Nicolas Trangez wrote:
> > if I got a list of XDeviceInfo structures (which include a device ID),
> > is it somehow possible to figure out the device file
> > (/dev/input/eventX, /dev/input/mouseY, whatever) behind this device?
>
> Nope. Not even the server stores this information. It is only used by
> the driver and while it can be stored in various private fields, there's
> no client access to it.
So there's no way to get a somewhat more user-friendly name than
"Logitech Thuis-usb-0000:00:1d.0-1/input0" (where "Logitech Thuis" is
the name in my xorg.conf), unless I split on the first "-", which isn't
failure-proof. Bummer.
Nicolas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.x.org/archives/xorg/attachments/20070717/324859ae/attachment.pgp>
More information about the xorg
mailing list