proCONTROLL with Mouse
in
Contributed Library Questions
•
2 years ago
Hi,
First post here :)
I try to plug a usb mouse on my MacBookPro
I see this in the console (and more)
« USB Optical Mouse has:
2 sliders
3 buttons
1 sticks »
but nothing works, mouse is recognize but input doesn't work !
My GamePad is working with this librarie… so what's wrong ?
First post here :)
I try to plug a usb mouse on my MacBookPro
I see this in the console (and more)
« USB Optical Mouse has:
2 sliders
3 buttons
1 sticks »
but nothing works, mouse is recognize but input doesn't work !
- import procontroll.*;
- import java.io.*;
- ControllIO controll;
- ControllDevice device;
- ControllButton b0, b1, b2;
- void setup() {
- controll = ControllIO.getInstance(this);
- 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();
- }
- device = controll.getDevice("USB Optical Mouse");
- b0 = device.getButton(0);
- b1 = device.getButton(1);
- b2 = device.getButton(2);
- }
- void draw() {
- if (b0.pressed()) {
- println("b0");
- }
- }
My GamePad is working with this librarie… so what's wrong ?
1