public void mousePress(int x,int y,int mouseButton){
  mouseX=x;
  mouseY=y;
  timestamp=System.currentTimeMillis();
  velocity=0;
  amplitude=0;
}

public void mousePress ( int x , int y , int mouseButton ) { mouseX = x ; mouseY = y ; timestamp = System . currentTimeMillis ( ) ; velocity = 0 ; amplitude = 0 ; }
mouse button was pressed
