Beispiel #1
0
        public static TouchPointerData Create(TouchPointerData source)
        {
            TouchPointerData newPointer = new TouchPointerData();

            newPointer.Clone(source);
            return(newPointer);
        }
Beispiel #2
0
 public void Clone(TouchPointerData source)
 {
     this.Id       = source.Id;
     this.RelX     = source.RelX;
     this.RelY     = source.RelY;
     this.RelVeloX = source.RelVeloX;
     this.RelVeloY = source.RelVeloY;
 }
Beispiel #3
0
 public void Clone(TouchEventData source)
 {
     this.EventType    = source.EventType;
     this.PointerCount = source.PointerCount;
     this.AvaiPointers = new TouchPointerData[this.PointerCount];
     for (int i = 0; i < this.PointerCount; i++)
     {
         AvaiPointers[i] = new TouchPointerData();
         AvaiPointers[i].Clone(source.AvaiPointers[i]);
     }
 }