207208209210211212213214215216217
//notify the pen is up //detect step 3 manager.getDetector().detect(3, creatorPanel.onPenUp(camera.ConvertToWorldPosition(mP))); if(!creatorPanel.isAnyKeyPressed()&&grabPos!=null){ worldLayer.getCamera().move(mP.delta(grabPos), false); grabPos=null; } } }
299300301302303304305306307308309
*/ @Override public void update() { if(grabPos!=null){ Point mP=MEngine.getMousePosition(); Vector v=mP.delta(grabPos); worldLayer.getCamera().move(v, true); grabPos.setPosition(mP); //detect step 1 manager.getDetector().detect(1, v);
8182838485868788899091
Point mP=MEngine.getMousePosition(); //notify the pen is up creatorPanel.onPenUp(camera.ConvertToWorldPosition(mP)); if(!creatorPanel.isAnyKeyPressed()){ worldLayer.getCamera().move(mP.delta(grabPos), false); grabPos=null; } } }
161162163164165166167168169170171
*/ @Override public void update() { if(grabPos!=null){ Point mP=MEngine.getMousePosition(); worldLayer.getCamera().move(mP.delta(grabPos), true); grabPos.setPosition(mP); } creator.restore(); super.update();
8586878889909192939495
*/ @Override public void update() { if(grabPos!=null){ Point mP=MEngine.getMousePosition(); Vector v=mP.delta(grabPos); v.setVectorX(0); camera.move(v, true); grabPos.setPosition(mP); } root.update();
100101102103104105106107108109110
*/ @Override public void update() { if(grabPoint!=null){ Point mP=MEngine.getMousePosition(); layer.getCamera().move(mP.delta(grabPoint), true); grabPoint.setPosition(mP); } layer.update(); }