Exemple #1
0
 public virtual void Consume(TouchInfo ti)
 {
     if (ti.TouchState == TouchState.Pressed)
     {
         mouseOver = true;
         if (OnPressed != null)
         {
             OnPressed.Fire(ti);
         }
     }
     else if (ti.TouchState == TouchState.Released)
     {
         mouseOver = false;
         if (ti.Delta.Length2() < 2500f / 480 / 480)
         {
             if (OnRelease != null)
             {
                 OnRelease.Fire(ti);
             }
         }
     }
     else if (ti.TouchState == TouchState.Moved)
     {
         mouseOver = true;
         OnMoved.Fire(ti);
     }
 }
Exemple #2
0
 protected void FireOnRelease(TouchInfo ti)
 {
     OnRelease.Fire(ti);
 }