Example #1
0
 public bool Equals(GameTouch e)
 {
     if (e == null)
     {
         return(false);
     }
     if (e == this)
     {
         return(true);
     }
     if (e.type == type && e.x == x && e.y == y && e.button == button && e.pointer == pointer && e.id == id)
     {
         return(true);
     }
     return(false);
 }
Example #2
0
 internal GameTouch(GameTouch touch)
 {
     if (touch == null)
     {
         this.Reset();
     }
     this._orientation = touch._orientation;
     this._active      = touch._active;
     this.type         = touch.type;
     this.x            = touch.x;
     this.y            = touch.y;
     this.dx           = touch.dx;
     this.dy           = touch.dy;
     this.button       = touch.button;
     this.pointer      = touch.pointer;
     this.duration     = touch.duration;
     this.id           = touch.id;
     this.timeUp       = touch.timeUp;
     this.timeDown     = touch.timeDown;
 }