Exemplo n.º 1
0
        private void mouseUp(object sender, System.EventArgs e)
        {
            int dx, dy, ux, uy;

            mPointUp = getPoint();
            dx       = (int)(mPointDown.X * mXPercent);
            dy       = (int)(mPointDown.Y * mYPercent);
            ux       = (int)(mPointUp.X * mXPercent);
            uy       = (int)(mPointUp.Y * mYPercent);
            mCmd.excuteCmdTouchSwipe(dx, dy, ux, uy);
            Console.WriteLine("dx:" + dx + " dy:" + dy + " ux:" + ux + " uy:" + uy);
            Console.WriteLine("down x:" + mPointDown.X + " down y:" + mPointDown.Y + " percent:" + mXPercent);
        }