Return to Snippet

Revision: 29819
at August 4, 2010 23:58 by S_Park


Initial Code
void draw() {
  stroke(255);
  if(mousePressed) {
    if (mouseEvent.getClickCount()==2) {
      background(0,0,random(0,255));
      println("<double click>");
    }
    if (mouseEvent.getButton()==MouseEvent.BUTTON3) {
      background(0,random(0,255),0);
      println("<right button>");
    }
  } 
}

Initial URL

                                

Initial Description

                                

Initial Title
Mouse clicking (Right & Double)

Initial Tags

                                

Initial Language
PHP