Exemple #1
0
 public void reset()
 {
     nodeX        = -1;
     nodeY        = -1;
     opennes      = 0;
     alertLabel   = PXCMGesture.Alert.Label.LABEL_ANY;
     gestureLabel = PXCMGesture.Gesture.Label.LABEL_ANY;
 }
Exemple #2
0
 public MyGestureParams()
 {
     nodeX        = -1;
     nodeY        = -1;
     opennes      = 0;
     alertLabel   = PXCMGesture.Alert.Label.LABEL_ANY;
     gestureLabel = PXCMGesture.Gesture.Label.LABEL_ANY;
 }
Exemple #3
0
 public override void OnGesture(ref PXCMGesture.Gesture data)
 {
     if (data.active)
     {
         Console.WriteLine("OnGesture(" + data.label + ")");
         gesture = data.label;
     }
 }
Exemple #4
0
        private void GetNextGesture()
        {
            currGesture = gestList[new Random().Next(0, gestList.Count)];

            while (currGesture == prevGesture)
            {
                currGesture = gestList[new Random().Next(0, gestList.Count)];
            }

            prevGesture = currGesture;
        }
Exemple #5
0
        public static void Update()
        {
            idleTime++;
            gesture = pipe.GetGesture();

            prevState = state;
            state     = pipe.GetState();

            if (state.position != prevState.position)
            {
                idleTime = 0;
            }

            //if (GetClick())
            //    firstPos = state.position;
        }
Exemple #6
0
 public PXCMGesture.Gesture.Label GetGesture()
 {
     PXCMGesture.Gesture.Label ans = gesture;
     gesture = PXCMGesture.Gesture.Label.LABEL_ANY;
     return(ans);
 }