コード例 #1
0
 void HandleOn_Swipe(MTBGesture gesture)
 {
     if (On_PlayerViewChange != null)
     {
         On_PlayerViewChange(gesture.position.x, gesture.position.y, gesture.deltaPosition.x, gesture.deltaPosition.y);
     }
 }
コード例 #2
0
 void HandleOn_LongTap(MTBGesture gesture)
 {
     if (On_PlayerInputAction != null)
     {
         On_PlayerInputAction(gesture.position.x, gesture.position.y, InputActionType.LongTap);
     }
 }
コード例 #3
0
 void HandleOn_TouchEnd(MTBGesture gesture)
 {
     if (On_PlayerTouchEnd != null)
     {
         On_PlayerTouchEnd();
     }
 }
コード例 #4
0
 void HandleOn_SwipeEnd(MTBGesture gesture)
 {
     if (On_PlayerViewChangeEnd != null)
     {
         On_PlayerViewChangeEnd(gesture.position.x, gesture.position.y);
     }
 }
コード例 #5
0
 void HandleOn_SwipeStart(MTBGesture gesture)
 {
     if (On_PlayerViewChangeStart != null)
     {
         On_PlayerViewChangeStart(gesture.position.x, gesture.position.y);
     }
 }
コード例 #6
0
ファイル: MTBTouch.cs プロジェクト: zhanjunxiong/ProjectMTB
        private MTBGesture GetMTBGesture(Gesture gesture)
        {
            MTBGesture mg = new MTBGesture();

            mg.fingerIndex   = gesture.fingerIndex;
            mg.touchCount    = gesture.touchCount;
            mg.startPosition = gesture.startPosition;
            mg.position      = gesture.position;
            mg.deltaPosition = gesture.deltaPosition;
            mg.actionTime    = gesture.actionTime;
            mg.deltaTime     = gesture.deltaTime;
            return(mg);
        }