How do I locate a USB device

My application program (in C) needs to determine which hid device in /dev/usb is the joystick and which is the trackball. How do I do this?Thanks.Scott
[172 byte] By [s_klein_bottlea] at [2007-11-27 7:33:08]
# 1
HiI've only ever used it a little bit, but your answer may be in libdevinfo (man libdevinfo, or docs.dun.com for more details).Paul
Paul_Floyda at 2007-7-12 19:13:31 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 2
Thanks for that suggestion, but I don't see anything in the man page that tells me how to determine the device type (or I'm just not realizing that it is there). Could you please be more specific? Thanks.Scott
s_klein_bottlea at 2007-7-12 19:13:31 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 3
If you are on Solaris 10 you can try libusb (man libusb).
SFVa at 2007-7-12 19:13:31 > top of Java-index,Development Tools,Solaris and Linux Development Tools...