Пример #1
0
 public Boolean onTouch(TouchEvent e)
 {
     if (bound.Contains(e.X, e.Y))
     {
         if (e.State == TouchState.Released)
         {
             foreach (onClickListener listener in onClickListeners)
             {
                 listener(e);
             }
             pressed = false;
             return(true);
         }
         foreach (onTouchListener listener in onTouchListeners)
         {
             listener(e);
         }
         pressed = true;
         return(true);
     }
     pressed = false;
     return(false);
 }
Пример #2
0
 public abstract void onClick(TouchEvent e);
Пример #3
0
 public abstract void onTouch(TouchEvent e);