We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Page Index Toggle Pages: 1
Two Mice (Read 1766 times)
Two Mice
Feb 19th, 2009, 8:53am
 
Does anyone have any advice on how to process input from two USB mice?  I'd like to get back two sets of mouse movements (two x/y pairs, or two delta x/y pairs).  

Perhaps there is a way I can read from a particular USB device?  Anyway to do this in Java if not in within Processing.

Thanks,
Chris
Re: Two Mice
Reply #1 - Feb 19th, 2009, 10:13am
 
First hit with Google seems fitting: Access USB devices from Java applications. I see also java.net: Java and USB which presents the same library (jUSB) and alternatives.

If you have some success with your experiments, I am sure other people will be interested by your results (perhaps look if it have been done and presented in Discourse already, too).
Re: Two Mice
Reply #2 - Feb 19th, 2009, 6:53pm
 
Be aware, though, that some operating systems just don't do multiple mice.

Windows XP and Vista, I believe, don't know what to do if you plug in multiple mice, because of course there is only one mouse pointer on the screen.

I have no idea about others, but if it mysteriously doesn't work on your platform you might investigate whether that's the underlying cause.

I think I've seen some multi-mouse hacks out there for Windows (might have even seen one on Microsoft's research website; not sure) if that turns out to be a problem.
Re: Two Mice
Reply #3 - Feb 19th, 2009, 7:25pm
 
Thanks for the advice. I haven't tried to plug two mice yet, but when I plug in a graphics tablet (on Windows XP Pro), that acts basically like a mouse, I can use either mouse or tablet to move the cursor. Although the tablet seems to take control unless the stylus is far from the tablet.
Now, tablet uses a different driver, I don't know the behavior when using the same driver.
Re: Two Mice
Reply #4 - Feb 20th, 2009, 9:12am
 
 http://cpnmouse.sourceforge.net

hope that helps
Re: Two Mice
Reply #5 - Feb 24th, 2009, 6:45am
 
For future searchers...

"Using proCCONTROLL on MacOSX for example allows you to address more than one mouse."

http://texone.org/procontroll/

Chris
Page Index Toggle Pages: 1