Пример #1
0
        private void localCursorChanged(CursorMgr mgr)
        {
            if (mgr.LocalCursor == null)
            {
                return;
            }

            if (mgr.skipNextAquiredCursor)
            {
                mgr.skipNextAquiredCursor = false;
                InpDeviceUp(new Point(0, 0));
                return;
            }

            //local cursor approval
            switch (_modeMgr.Mode)
            {
            case ShapeInputMode.CursorApprovalExpected:
                _modeMgr.Mode = ShapeInputMode.Manipulating;
                CaptureAndStartManip(mgr.LocalCursor, _cursorApproval.pos, _cursorApproval.resizeNode,
                                     _cursorApproval.td);
                if (mgr.LocalCursor != null)
                {
                    mgr.LocalCursor.SetFocus();
                }
                break;
            }
        }
Пример #2
0
        void localCursorChanged(CursorMgr mgr)
        {
            if (mgr.LocalCursor == null)
            {
                return;
            }

            //local cursor approval
            switch (_modeMgr.Mode)
            {
            case ShapeInputMode.CursorApprovalExpected:
                _modeMgr.Mode = ShapeInputMode.Manipulating;
                CaptureAndStartManip(mgr.LocalCursor, cursorApproval.pos, cursorApproval.resizeNode, cursorApproval.td);
                mgr.LocalCursor.SetFocus();
                break;
            }
        }
Пример #3
0
        private void localCursorChanged(CursorMgr mgr)
        {
            if (mgr.LocalCursor == null)
                return;

            if (mgr.skipNextAquiredCursor)
            {
                mgr.skipNextAquiredCursor = false;
                InpDeviceUp(new Point(0,0));
                return;
            }

            //local cursor approval
            switch (_modeMgr.Mode)
            {
                case ShapeInputMode.CursorApprovalExpected:
                    _modeMgr.Mode = ShapeInputMode.Manipulating;
                    CaptureAndStartManip(mgr.LocalCursor, _cursorApproval.pos, _cursorApproval.resizeNode,
                                         _cursorApproval.td);
                    if (mgr.LocalCursor != null)
                    {
                        mgr.LocalCursor.SetFocus();
                    }
                    break;
            }
        }
Пример #4
0
        void localCursorChanged(CursorMgr mgr)
        {
            if (mgr.LocalCursor == null)
                return;

            //local cursor approval
            switch (_modeMgr.Mode)
            {
                case ShapeInputMode.CursorApprovalExpected:
                    _modeMgr.Mode = ShapeInputMode.Manipulating;
                    CaptureAndStartManip(mgr.LocalCursor, cursorApproval.pos, cursorApproval.resizeNode, cursorApproval.td);
                    mgr.LocalCursor.SetFocus();
                    break;                
            }
        }