diff -r e642ad0c366b -r b37888f59cf2 src/FingersDance.GestureControl/GestureControl.cs --- a/src/FingersDance.GestureControl/GestureControl.cs Thu Nov 05 22:40:36 2009 +0100 +++ b/src/FingersDance.GestureControl/GestureControl.cs Fri Nov 06 17:50:40 2009 +0100 @@ -135,7 +135,7 @@ StylusPointCollection tmp2 = s.GetBezierStylusPoints(); // Generate a list of SurfaceGesturePoint, just X and Y but can be improve List pointList = new List(); - foreach (StylusPoint p in tmp2) + foreach (StylusPoint p in s.StylusPoints) pointList.Add(new SurfaceGesturePoint { X = p.X, Y = p.Y }); // create the gesture analyser and set the list SurfaceGesture gesture = new SurfaceGesture(pointList, 1); @@ -168,10 +168,9 @@ } #region Pattern - /// + /// /// return a String with the recognized pattern, "None" if no pattern /// - /// public String GetPattern(List gestures) { int found = 0; @@ -200,7 +199,6 @@ return p.Name; } } - return "None"; } @@ -262,18 +260,21 @@ case "Right": p.Add(new SurfaceGestureVector() { Direction = SurfaceGestureVectorDirection.RIGHT }); break; - case "DownRight": + case "Downright": p.Add(new SurfaceGestureVector() { Direction = SurfaceGestureVectorDirection.DOWNRIGHT }); break; - case "DownLeft": + case "Downleft": p.Add(new SurfaceGestureVector() { Direction = SurfaceGestureVectorDirection.DOWNLEFT }); break; - case "UpRight": + case "Upright": p.Add(new SurfaceGestureVector() { Direction = SurfaceGestureVectorDirection.UPRIGHT }); break; - case "UpLeft": + case "Upleft": p.Add(new SurfaceGestureVector() { Direction = SurfaceGestureVectorDirection.UPLEFT }); break; + case "TAP": + p.Add(new SurfaceGestureVector() { Direction = SurfaceGestureVectorDirection.TAP }); + break; default: break; }