예제 #1
0
 public override void onTouchUp(hypercube.touch touch)
 {
     hypercube.touchInterface i = new hypercube.touchInterface();
     touch._getInterface(ref i);
     if (stage == calibrationStage.STEP_touchCorner1)
     {
         ULx = i.rawTouchScreenX;
         ULy = i.rawTouchScreenY;
         goToNextStage();
     }
     else if (stage == calibrationStage.STEP_touchCorner2)
     {
         URx = i.rawTouchScreenX;
         URy = i.rawTouchScreenY;
         goToNextStage();
     }
     else if (stage == calibrationStage.STEP_touchCorner3)
     {
         LRx = i.rawTouchScreenX;
         LRy = i.rawTouchScreenY;
         goToNextStage();
     }
     else if (stage == calibrationStage.STEP_touchCorner4)
     {
         LLx = i.rawTouchScreenX;
         LLy = i.rawTouchScreenY;
         set();
         goToNextStage();
     }
 }
예제 #2
0
 public override void onTouchUp(hypercube.touch touch)
 {
     if ((int)touch.id == activeTouch)
     {
         stop();
     }
 }
예제 #3
0
 public override void onTouchDown(hypercube.touch touch)
 {
     if (touch.posX < activeCornerArea && touch.posY > 1f - activeCornerArea)  //upper left
     {
         activeTouch = (int)touch.id;
         start();
     }
 }
예제 #4
0
        public override void onTouchMoved(hypercube.touch touch)
        {
            if ((int)touch.id != activeTouch)
            {
                return;
            }

            if (touch.posX > activeCornerArea || touch.posY < 1f - activeCornerArea) //upper left
            {
                stop();
            }

            //Debug.Log(touch.posX + "   " + touch.posY);
        }
 public virtual void onTouchMoved(hypercube.touch touch)
 {
 }
 public virtual void onTouchUp(hypercube.touch touch)
 {
 }
 public virtual void onTouchDown(hypercube.touch touch)
 {
 }