public static MouseEventArgs ToEto(av.MotionEvent e) { if (e.Action == av.MotionEventActions.Down) { return new MouseEventArgs(MouseButtons.Primary, Key.None, new PointF(e.GetX(), e.GetY())); } // Is this correct? It generates a mouse event for pointer-up and cancel actions // See the iOS handler as well, which does something similar return new MouseEventArgs(MouseButtons.Primary, Key.None, Point.Empty); }
public override bool OnTouchEvent(A.MotionEvent e) { contentView.Click(e.GetX(), e.GetY(), this); if (contentView.Active) { input.ShowSoftInput(this, ShowFlags.Forced); } else { input.HideSoftInputFromWindow(this.WindowToken, 0); } Draw(); return false; }