Beispiel #1
0
 protected internal override void ProcessTouchPressed()
 {
     if (!isTouchClick)
     {
         return;
     }
     if (!input.IsMoving())
     {
         int dx = this.input.GetTouchX() - this.GetScreenX();
         int dy = this.input.GetTouchY() - this.GetScreenY();
         dragActor = GetSynchronizedObject(dx, dy);
         if (dragActor != null)
         {
             if (dragActor.IsClick())
             {
                 dragActor.DownClick(dx, dy);
                 if (dragActor.actorListener != null)
                 {
                     dragActor.actorListener.DownClick(dx, dy);
                 }
             }
         }
         this.DownClick(dx, dy);
     }
 }
Beispiel #2
0
 protected internal override void ProcessTouchPressed()
 {
     if (!isTouchClick)
     {
         return;
     }
     if (!input.IsMoving())
     {
         int dx = this.input.GetTouchX() - this.GetScreenX();
         int dy = this.input.GetTouchY() - this.GetScreenY();
         dragActor = GetSynchronizedObject(dx, dy);
         if (dragActor != null)
         {
             if (dragActor.IsClick())
             {
                 dragActor.DownClick(dx, dy);
                 if (dragActor.actorListener != null)
                 {
                     dragActor.actorListener.DownClick(dx, dy);
                 }
             }
         }
         this.DownClick(dx, dy);
     }
 }