public static TouchPointerData Create(TouchPointerData source) { TouchPointerData newPointer = new TouchPointerData(); newPointer.Clone(source); return(newPointer); }
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; }
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]); } }