Ejemplo n.º 1
0
 public void release3(ViewPanel v, int mod, int jpx, int jpy, MouseEvent e) {
   application.cam.setXspeed(0);
   application.cam.setYspeed(0);
   application.cam.setZspeed(0);
   v.setDrawDrag(false);
   application.vsm.getActiveView().mouse.setSensitivity(true);
   /*Camera c=v.cams[0];
   application.cam.createCameraAnimation(500,2,new LongPoint(lastX-application.vsm.mouse.vx,lastY-application.vsm.mouse.vy),c.getID());*/
 }
Ejemplo n.º 2
0
 public void press3(ViewPanel v, int mod, int jpx, int jpy, MouseEvent e) {
   // application.vsm.setSync(false);
   lastJPX = jpx;
   lastJPY = jpy;
   // application.vsm.animator.setActiveCam(v.cams[0]);
   v.setDrawDrag(true);
   application.vsm.getActiveView().mouse.setSensitivity(false);
   // because we would not be consistent  (when dragging the mouse, we computeMouseOverList, but
   // if there is an anim triggered by {X,Y,A}speed, and if the mouse is not moving, this list is
   // not computed - so here we choose to disable this computation when dragging the mouse with
   // button 3 pressed)
 }