Quantcast
Channel: Processing Forum
Viewing all articles
Browse latest Browse all 1768

Re : gesture control interface

$
0
0
I assume that the code above is working...and you are able to move the blob with the arduino controller.

Then you can probably try this code:

  1. import java.awt.AWTException;
  2. import java.awt.Robot;
  3.  
  4. Robot robot;
  5.  
  6. void setup() {
  7.   size(400, 400);
  8.   try {
  9.     robot = new Robot();
  10.   }
  11.   catch (AWTException e) {
  12.     e.printStackTrace();
  13.   }
  14.   robot.mouseMove(displayWidth/2, displayHeight/2);
  15. }
  16.  
  17. void draw() {
  18.   //println(frameCount);
  19. }



Viewing all articles
Browse latest Browse all 1768

Trending Articles