Mapping XInput devices to /dev node

Nicolas Trangez eikke at eikke.com
Tue Jul 17 02:43:50 PDT 2007


On Mon, 2007-07-16 at 17:03 -0700, Greg KH wrote:
> On Mon, Jul 16, 2007 at 09:51:11PM +0200, Nicolas Trangez wrote:
> > Hija,
> > 
> > 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? I
> > could not find anything useful in the XDeviceInfo struct, or in the
> > XDevice structure...
> 
> Why would you want to know the /dev node associated with it?
To be able to find the corresponding HAL UDI so I can get some more info
than just the (not very user-friendly) "name" property in the
XDeviceInfo struct. The /dev node is afaik the only usable X device
property I can use.

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/85d5f8b4/attachment.pgp>


More information about the xorg mailing list