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); }
public abstract void onClick(TouchEvent e);
public abstract void onTouch(TouchEvent e);