having problems finding "java.io" library for proControll.
in
Contributed Library Questions
•
2 months ago
hello all... After loading the library "procontroll.*" into the libraries folder. and running the "procontroll_printDevices" sketch, I can't seem to get it to work. I believe it is because I do not have the "java.io.*" installed on my system, however, I could be wrong. The sketch runs, but does nothing.
My goal is to interface a USB joystick to a processing sketch. After searching the net for a bit I found the library"procontroll" which seems to fit the bill but if it does not work it is useless. I am new to processing, so if there is another method out there to achieve this task I am open to suggestions. below is a copy of the sketch code:
Thanks
Ron
- import procontroll.*;
- import java.io.*;
- ControllIO controll;
- void setup(){
- size(400,400);
- controll = ControllIO.getInstance(this);
- controll.printDevices();
- for(int i = 0; i < controll.getNumberOfDevices(); i++){
- ControllDevice device = controll.getDevice(i);
- println(device.getName()+" has:");
- println(" " + device.getNumberOfSliders() + " sliders");
- println(" " + device.getNumberOfButtons() + " buttons");
- println(" " + device.getNumberOfSticks() + " sticks");
- device.printSliders();
- device.printButtons();
- device.printSticks();
- }
1