Example #1
0
        public FormControl(Cmd cmd)
        {
            mCmd = cmd;
            InitializeComponent();
            mSyn = SynchronizationContext.Current;
            mCmd.excuteCmdRemount();
            mCmd.excuteCmdPush(Enums.Path.PATH_SRC + @"screen", Enums.AndroidPath.SYSTEM_BIN + "screen", Enums.LinuxPermission.RWX_RWX_RWX);

            mClient = new UsbClient(cmd);
            iDiv    = 2;
        }
Example #2
0
        public ScreenCtrl(Cmd cmd, PictureBox picture)
        {
            mCmd    = cmd;
            mScreen = picture;
            mSyn    = SynchronizationContext.Current;
            mCmd.excuteCmdRemount();
            mCmd.excuteCmdPush(Enums.Path.PATH_SRC + @"screen", Enums.AndroidPath.SYSTEM_BIN + "screen", Enums.LinuxPermission.RWX_RWX_RWX);

            mClient   = new UsbClient(cmd);
            iDiv      = 2;
            mWidth    = 720;
            mHeight   = 1280;
            mXPercent = (float)mWidth / (float)picture.Width;
            mYPercent = (float)mHeight / (float)picture.Height;
            setMouseFunc();
        }