Ejemplo n.º 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);
     }
 }
Ejemplo n.º 2
0
 void HandleOn_LongTap(MTBGesture gesture)
 {
     if (On_PlayerInputAction != null)
     {
         On_PlayerInputAction(gesture.position.x, gesture.position.y, InputActionType.LongTap);
     }
 }
Ejemplo n.º 3
0
 void HandleOn_TouchEnd(MTBGesture gesture)
 {
     if (On_PlayerTouchEnd != null)
     {
         On_PlayerTouchEnd();
     }
 }
Ejemplo n.º 4
0
 void HandleOn_SwipeEnd(MTBGesture gesture)
 {
     if (On_PlayerViewChangeEnd != null)
     {
         On_PlayerViewChangeEnd(gesture.position.x, gesture.position.y);
     }
 }
Ejemplo n.º 5
0
 void HandleOn_SwipeStart(MTBGesture gesture)
 {
     if (On_PlayerViewChangeStart != null)
     {
         On_PlayerViewChangeStart(gesture.position.x, gesture.position.y);
     }
 }
Ejemplo n.º 6
0
        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);
        }