Examples of PanProcessorTwoFingers


Examples of org.mt4j.input.inputProcessors.componentProcessors.panProcessor.PanProcessorTwoFingers

    //Add multitouch gestures to the canvas background
    lassoProcessor  = new LassoProcessor(app, this.getCanvas(), this.getSceneCam());
    this.getCanvas().registerInputProcessor(lassoProcessor);
    this.getCanvas().addGestureListener(LassoProcessor.class, new DefaultLassoAction(app, this.getCanvas().getClusterManager(), this.getCanvas()));
   
    this.getCanvas().registerInputProcessor(new PanProcessorTwoFingers(app));
    this.getCanvas().addGestureListener(PanProcessorTwoFingers.class, new DefaultPanAction());

    this.getCanvas().registerInputProcessor(new ZoomProcessor(app));
    this.getCanvas().addGestureListener(ZoomProcessor.class, new DefaultZoomAction());
   
View Full Code Here

Examples of org.mt4j.input.inputProcessors.componentProcessors.panProcessor.PanProcessorTwoFingers

    backgroundPan.setNoStroke(true);
    backgroundPan.setText("Pan anywhere on the background!");
    backgroundPan.setPickable(false);
    this.getCanvas().addChild(backgroundPan);
    backgroundPan.setPositionGlobal(new Vector3D(app.width/2f, app.height/2f + 1*verticalPad,0));
    getCanvas().registerInputProcessor(new PanProcessorTwoFingers(app));
    getCanvas().addGestureListener(PanProcessorTwoFingers.class, new DefaultPanAction());
   
    //Add component multi-touch gestures
    MTTextArea dragOnly = new MTTextArea(mtApplication, font);
    dragOnly.setFillColor(textAreaColor);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.