Derek Juba wrote:
>>I am trying to build a rotary encoder for a robotic telescope using >>optical usb mice (I am running gentoo linux). My system would require >>three mice connected to usb ports (two mice for two rotary encoders and >>one for X-windows on the control computer). I have found a library >>(manymouse which uses the evdev driver) for linux that allows multiple >>mice to be connected and read out. The problem is that the X-window >>cursor responds to all of the mice connected to the computer. I would >>like the X-window cursor to respond to only one of the mice connected to >>the computer, since the two mice used as rotary encoders would move the >>cursor all over the screen and prevent me from using mouse driven input >>for any programs I am running. Any ideas on how to acomplish this? >> >> >> > >I'm not too knowledgable about X-windows, but I think if you connect >multiple USB mice you get entries in /dev like /dev/mouse0, /dev/mouse1, >and /dev/mice. /dev/mice gives input from all mice combined, while the >others give input from the individual mice. If you could somehow >configure X-windows to use /dev/mouse0 for mouse input rather than >/dev/mice, it seems like that might do what you want. > >-Derek > > > Thank you. Your idea worked perfectly!!!!!!
