Browse files

making it work with more than one kinect

  • Loading branch information...
1 parent 2e0f185 commit fa000139c1914a4688b053a7834cd047f004d439 @shiffman committed May 6, 2012
View
8 wrappers/java/processing/KinectProcessing/src/org/openkinect/processing/Kinect.java
@@ -36,17 +36,19 @@ public Kinect(PApplet _p) {
}
public void start() {
-
+ start(0);
+ }
+
+ public void start(int num) {
context = Context.getContext();
if(context.devices() < 1)
{
System.out.println("No Kinect devices found.");
}
- device = context.getDevice(0);
+ device = context.getDevice(num);
kimg = new RGBImage(p5parent);
dimg = new DepthImage(p5parent);
running = true;
-
super.start();
}

0 comments on commit fa00013

Please sign in to comment.