void recognitionEngine_GestureRecognized(object sender, GestureEventArgs e)
 {
     //listBox1.Items.Add(e.GestureType.ToString());
     textBox1.Text = e.GestureType.ToString();
 }
Example #2
0
        void recognitionEngine_GestureRecognized(object sender, GestureEventArgs e)
        {
            String recognizedGesture = e.GestureType.ToString();

            switch (recognizedGesture) {

                case "PullDown":

                    break;

                case "PushUp":

                    if (!relatedActivated)
                        break;

                    var pushUpStoryboard = Resources["TopPushUp"] as Storyboard;

                    if (pushUpStoryboard != null)
                    {
                        pushUpStoryboard.Begin();
                    }
                    //watch.Restart();
                    relatedItemsDown = false;
                    relatedActivated = false;
                    relatedJustDeactivated = true;

                    break;

                case "SwipeLeft":

                    Debug.WriteLine("SWIPED LEFT :DDDDDDDDDDDDDDDDDDDDDD");

                    break;

                case "SwipeRight":

                    Debug.WriteLine("SWIPED RIGHT DDDDDDDDDDDDDDDDDDDDD:");

                    break;

                default:
                    break;

            }
        }
 public void recog4_GestureRecognized(object sender , GestureEventArgs e)
 {
     MessageBox.Show("You Need to Pee");
 }
 public void recognitionEngine_GestureRecognized(object sender, GestureEventArgs e)
 {
     MessageBox.Show("You  Clapped Your Hnads");
 }
 public void recog3_GestureDone(object sender, GestureEventArgs e)
 {
     MessageBox.Show("You are Eating");
 }