Package org.mt4j.input.inputProcessors.componentProcessors.tapProcessor

Examples of org.mt4j.input.inputProcessors.componentProcessors.tapProcessor.TapProcessor


    this.setEnabled(true);
    this.setBoundsBehaviour(AbstractShape.BOUNDS_ONLY_CHECK);
   
    //Make clickable
    this.setGestureAllowance(TapProcessor.class, true);
    this.registerInputProcessor(new TapProcessor(pApplet));
    this.addGestureListener(TapProcessor.class, new DefaultButtonClickAction(this));
   
    //Draw this component and its children above
    //everything previously drawn and avoid z-fighting
    this.setDepthBufferDisabled(true);
View Full Code Here


    float movieClipWidth = movieClip.getWidthXY(TransformSpace.RELATIVE_TO_PARENT);
    playSymbol = new PlaySymbol(app, this.movieClip.getCenterPointRelativeToParent(), movieClipWidth/2f, movieClipWidth/2f, 35);
    this.addChild(playSymbol);
   
   
    this.registerInputProcessor(new TapProcessor(app, 30));
    this.addGestureListener(TapProcessor.class, new IGestureEventListener() {
      public boolean processGestureEvent(MTGestureEvent ge) {
        TapEvent te = (TapEvent)ge;
        if (te.isTapped()){
          if (movieClip != null && movieClip.movie != null){
View Full Code Here

TOP

Related Classes of org.mt4j.input.inputProcessors.componentProcessors.tapProcessor.TapProcessor

Copyright © 2018 www.massapicom. 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.