public void reset() { nodeX = -1; nodeY = -1; opennes = 0; alertLabel = PXCMGesture.Alert.Label.LABEL_ANY; gestureLabel = PXCMGesture.Gesture.Label.LABEL_ANY; }
public MyGestureParams() { nodeX = -1; nodeY = -1; opennes = 0; alertLabel = PXCMGesture.Alert.Label.LABEL_ANY; gestureLabel = PXCMGesture.Gesture.Label.LABEL_ANY; }
public override void OnGesture(ref PXCMGesture.Gesture data) { if (data.active) { Console.WriteLine("OnGesture(" + data.label + ")"); gesture = data.label; } }
private void GetNextGesture() { currGesture = gestList[new Random().Next(0, gestList.Count)]; while (currGesture == prevGesture) { currGesture = gestList[new Random().Next(0, gestList.Count)]; } prevGesture = currGesture; }
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; }
public PXCMGesture.Gesture.Label GetGesture() { PXCMGesture.Gesture.Label ans = gesture; gesture = PXCMGesture.Gesture.Label.LABEL_ANY; return(ans); }