3 mice on a PC

Submitted by Anonymous
on January 10, 2008 - 12:17pm

Hi Everybody

I wanna attach 2 USB mice to a Linux PC and read input data (move and buttons)from them. I am a bit falimiar with USB concepts.

Can anybody help?

Regards,
Soosho

evdev

strcmp
on
January 10, 2008 - 2:13pm

the events arrive at the evdev devices in /dev/input/event* . to better locate the mice (usb devices tend to change device numbers often) open the corresponding device in /dev/input/event/by-path/ or /dev/input/event/by-id/ (udev required).

look at http://www.frogmouth.net/hid-doco/linux-hid.html

Thanks

Soosho (not verified)
on
January 11, 2008 - 10:59am

Dear strcmp

Thanks a lot for your guid. I read the document and the problem solved. There was a realy good sample which worked for me.

Regards,
Soosho

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.