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.
IndexProcessing DevelopmentLibraries,  Tool Development › multiple usb devices - proControll
Page Index Toggle Pages: 1
multiple usb devices - proControll? (Read 1458 times)
multiple usb devices - proControll?
May 17th, 2006, 10:03pm
 
I want to be able to access multiple usb devices as input into my applet.  Specifically, I need 4 wireless input devices (2 buttons each). I'm looking at using the clickers used in lectures as input.

The problem, these devices are mice.  When I plug in mice they all coalesce into one mouse; however, I need to know what control was used for the input.

I tried plugging multiple mice into my computer, proControll only listed one Mouse with 0-buttons, 0-sliders, and 0-sticks.  Can I access what I need using proControll or the  game controllers that it uses?

If not, does anyone know of other libraries that might be useful in accessing specific USB devices?  Only needing the buttons, the libraries only need to provide access to the raw data sent back at minimum.


thanks,

tony
Re: multiple usb devices - proControll?
Reply #1 - May 17th, 2006, 10:59pm
 
an Arduino board is $29 at sparkfun, that should have more than enough button inputs (digital i/o), and works very well with processing... http://arduino.cc and http://sparkfun.com

and there's a great tutorial on how to connect up buttons here:
http://webzone.k3.mah.se/projects/arduino-workshop/projects/arduino_meets_processing/instructions/pushbutton.html
Re: multiple usb devices - proControll?
Reply #2 - May 18th, 2006, 9:50pm
 
Hi tony

There is no way to use mre than one mouse, this was one of the first things I tried out and unfortunatly every OS is not allowing multiple mouse inputs. You could use cheap joypads or something similar to get the same result
Re: multiple usb devices - proControll?
Reply #3 - May 19th, 2006, 7:08am
 
you can try using a different input device like parallel port since all you need is a multiple button input. you can refer parallel port interfacing by jan alexson at www.logix4u.net. theres already a java library available at http://www.hytherion.com/beattidp/comput/pport.htm. i'll be posting a parallel port interfacing library myself within next few days.
Re: multiple usb devices - proControll?
Reply #4 - May 19th, 2006, 6:54pm
 
Hmm... thats what I was afriad of - hiding controls to the mice via abstraction.  Is there not a generic way to access individual USB devices, regaurdless of what they are?

I'm interested in persuing the gamepad method - as I can get wireless usb gamepads fairly easily.  I do not have any gamepads to test with at this moment, but I can access multiple pads simultaneously, correct?  I just want to be sure they don't suffer the same fate as the mice.
Page Index Toggle Pages: 1