Пример #1
0
 public void Update(List <TouchData> touchDataList)
 {
     foreach (var touchData in touchDataList)
     {
         if (TouchMove(touchData))
         {
             Update(SampleDraw.TouchPixelX(touchData));
         }
     }
 }
Пример #2
0
        /// Rectangle touch test
        public bool TouchMove(TouchData touchData)
        {
            if (touchData.Status == TouchStatus.Move)
            {
                return(InsideRect(SampleDraw.TouchPixelX(touchData),
                                  SampleDraw.TouchPixelY(touchData)));
            }

            return(false);
        }