Esempio n. 1
0
	public EasyTouch(){
		enable = true;		

		allowUIDetection = true;
		enableUIMode = true;
		autoUpdatePickedUI = false;

		enabledNGuiMode = false;
		nGUICameras = new List<Camera>();

		autoSelect = true; 
		touchCameras = new List<ECamera>();
		pickableLayers3D = 1<<0;
		enable2D = false;
		pickableLayers2D = 1<<0;

		gesturePriority = GesturePriority.Tap;
		StationaryTolerance = 15;
		longTapTime =1;
		doubleTapDetection = DoubleTapDetection.BySystem;
		doubleTapTime = 0.3f;
		swipeTolerance = 0.85f;

		enable2FingersGesture=true; 
		twoFingerPickMethod = TwoFingerPickMethod.Finger;
		enable2FingersSwipe = true;
		enablePinch = true;
		minPinchLength = 0.1f;
		enableTwist = true;
		minTwistAngle = 0.1f;

		enableSimulation = true;
		twistKey = KeyCode.LeftAlt;
		swipeKey = KeyCode.LeftControl;

		
	}
Esempio n. 2
0
	public static void SetGesturePriority( GesturePriority value){
		if (EasyTouch.instance)
			EasyTouch.instance.gesturePriority = value;
	}