public void TouchMove(object sdr, Type t, TouchDevice touchDevice, TouchPoint touchPoint) { My_Point point = Point_List.UpdatePoint(sdr, t, touchDevice.Id, touchPoint); if (point != null && (t == typeof(Card_Layer))) { ///Show gesture indicator if (point.Life > STATICS.MIN_GESTURE_LIFE) { FrameworkElement sender = point.Sender as FrameworkElement; lock (Point_List.TouchPointList) { if (!control.MainWindow.GestureIndicatorLayer.Contain(touchDevice.Id)) { control.MainWindow.GestureIndicatorLayer.Add(touchDevice.Id, touchPoint.Position); } else { control.MainWindow.GestureIndicatorLayer.Move(touchDevice.Id, touchPoint.Position); } } } } }
protected virtual void OnTerminated(object sender, Gesture_Event_Args gEventArgs) { foreach (My_Point point in gEventArgs.GesturePoints) { Point_List.ReleasePoint(point.ID); } Terminated(sender, gEventArgs); }
public My_Point TouchUp(TouchDevice touchDevice, TouchPoint touchPoint) { if (control.MainWindow.GestureIndicatorLayer.Contain(touchDevice.Id)) { control.MainWindow.GestureIndicatorLayer.Remove(touchDevice.Id); } My_Point point = Point_List.ReleasePoint(touchDevice.Id); if (!isTouched()) { control.MainWindow.GestureIndicatorLayer.Clear(); } return(point); }
public void Deinitialize() { Point_List.Clear(); Link_List.CardLinks.Clear(); Group_List.CardGroups.Clear(); Card_List.CardList.Clear(); Shared_Card_List.ShardCards.Clear(); cardControler = null; gestureControler.quit(); gestureControler = null; userControler.UserList.Clear(); userControler = null; touchControler = null; }
public void ReleasePoint(int pointIndex) { Point_List.ReleasePoint(pointIndex); }
public void TouchDown(object sdr, Type t, int touchDevice, TouchPoint touchPoint) { Point_List.AddPoint(sdr, t, touchDevice, touchPoint); }