src/FingersDance.GestureControl/GestureControl.cs
changeset 204 240314f2e5bf
parent 193 96374d03e714
child 205 468f3757f1f8
equal deleted inserted replaced
202:e15e7110ef6d 204:240314f2e5bf
   155         void RunCapture()
   155         void RunCapture()
   156         {
   156         {
   157             try
   157             try
   158             {
   158             {
   159                 Thread.Sleep(1000);
   159                 Thread.Sleep(1000);
       
   160                 start = -1;
   160                 CommonPattern();
   161                 CommonPattern();
   161                 string gesture = GetPattern(_Gestures);
   162                 string gesture = GetPattern(_Gestures);
   162                 if (gesture != "None")
   163                 if (gesture != "None")
   163                 {
   164                 {
   164                     this.RaiseGestureEvent(new Gesture{Start=start, End=time, Name=gesture});
   165                     this.RaiseGestureEvent(new Gesture{Start=start, End=time, Name=gesture});
   165                 }
   166                 }
   166                 _Gestures.Clear();
   167                 _Gestures.Clear();
   167                 start = -1;
       
   168                 inProgess = null;
   168                 inProgess = null;
   169             }
   169             }
   170             catch (Exception)
   170             catch (Exception)
   171             {
   171             {
   172                 inProgess = null;
   172                 inProgess = null;