[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Can i use two mouse
On Tue, Apr 02, 2002 at 10:05:20AM +0530, J Pradeep wrote:
>
> Hi *,
> I had a doubt. How do you choose which mouse should act on which program
> ? If you can define proper symantics for that it should be possible. I
> think you can tinker the mouse-driver to reflect your symantics. But first
> you should get clear about how exactly the program-mouse association is
> brought about.
> One obvious way I can think of immeiately is that the program which
> needs this second mouse registers with the second mouse. Then the second
> mouse passes any messages to this program only. However if you want a
> program to use both these mouses - things may get complicated !
>
> Can some experts working on mice comment on this.
If you have multiple mice (like USB or serial mice) they are avaiable as
/dev/input/mouse0, /dev/input/mouse1, and so on. All of the mice mixed
together is at /dev/input/mice.
So if you only want to read from one mouse, just read the one device,
and not the mixture.
Hope this helps,
greg k-h
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/