コード例 #1
0
        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);
                        }
                    }
                }
            }
        }
コード例 #2
0
 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);
 }
コード例 #3
0
        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);
        }
コード例 #4
0
 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;
 }
コード例 #5
0
 public void ReleasePoint(int pointIndex)
 {
     Point_List.ReleasePoint(pointIndex);
 }
コード例 #6
0
 public void TouchDown(object sdr, Type t, int touchDevice, TouchPoint touchPoint)
 {
     Point_List.AddPoint(sdr, t, touchDevice, touchPoint);
 }