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(); } }
public override void onTouchUp(hypercube.touch touch) { if ((int)touch.id == activeTouch) { stop(); } }
public override void onTouchDown(hypercube.touch touch) { if (touch.posX < activeCornerArea && touch.posY > 1f - activeCornerArea) //upper left { activeTouch = (int)touch.id; start(); } }
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) { }