void HandleOn_Swipe(MTBGesture gesture) { if (On_PlayerViewChange != null) { On_PlayerViewChange(gesture.position.x, gesture.position.y, gesture.deltaPosition.x, gesture.deltaPosition.y); } }
void HandleOn_LongTap(MTBGesture gesture) { if (On_PlayerInputAction != null) { On_PlayerInputAction(gesture.position.x, gesture.position.y, InputActionType.LongTap); } }
void HandleOn_TouchEnd(MTBGesture gesture) { if (On_PlayerTouchEnd != null) { On_PlayerTouchEnd(); } }
void HandleOn_SwipeEnd(MTBGesture gesture) { if (On_PlayerViewChangeEnd != null) { On_PlayerViewChangeEnd(gesture.position.x, gesture.position.y); } }
void HandleOn_SwipeStart(MTBGesture gesture) { if (On_PlayerViewChangeStart != null) { On_PlayerViewChangeStart(gesture.position.x, gesture.position.y); } }
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); }