Пример #1
0
        private void setGazeControllerMode()
        {
            //Both Eye  ---------------------------------------------------------------------------------------------

            if (mConfiguration.bothEyeAndHead == true)
            {
                controller.setMode(MouseController.Mode.BOTH_EYE_AND_HEAD);
                IsBothEyeAndHead  = true;
                IsLeftEyeAndHead  = false;
                IsRightEyeAndHead = false;
                IsJustHeadAndHead = false;
                IsBothEye         = false;
                IsLeftEye         = false;
                IsRightEye        = false;
                mgBothEyeAndHead  = new MagnifierWindowsBothEyeAndHead(this, mConfiguration, this, controller);
            }

            if (mConfiguration.bothEye == true)
            {
                controller.setMode(MouseController.Mode.BOTH_EYE);
                IsBothEyeAndHead  = false;
                IsLeftEyeAndHead  = false;
                IsRightEyeAndHead = false;
                IsJustHeadAndHead = false;
                IsBothEye         = true;
                IsLeftEye         = false;
                IsRightEye        = false;
                mgBothEye         = new MagnifierWindowsBothEye(this, mConfiguration, this, controller);
            }

            //Left Eye  ---------------------------------------------------------------------------------------------
            if (mConfiguration.leftEyeAndHead == true)
            {
                controller.setMode(MouseController.Mode.LEFT_EYE_AND_HEAD);
                IsBothEyeAndHead  = false;
                IsLeftEyeAndHead  = true;
                IsRightEyeAndHead = false;
                IsJustHeadAndHead = false;
                IsBothEye         = false;
                IsLeftEye         = false;
                IsRightEye        = false;
                mgLeftEyeAndHead  = new MagnifierWindowLeftEyeAndHead(this, mConfiguration, this, controller);
            }

            if (mConfiguration.leftEye == true)
            {
                controller.setMode(MouseController.Mode.LEFT_EYE);
                IsBothEyeAndHead  = false;
                IsLeftEyeAndHead  = false;
                IsRightEyeAndHead = false;
                IsJustHeadAndHead = false;
                IsBothEye         = false;
                IsLeftEye         = true;
                IsRightEye        = false;
                mgLeftEye         = new MagnifierWindowLeftEye(this, mConfiguration, this, controller);
            }

            //Right Eye  ---------------------------------------------------------------------------------------------

            if (mConfiguration.rightEyeAndHead == true)
            {
                controller.setMode(MouseController.Mode.RIGHT_EYE_AND_HEAD);
                IsBothEyeAndHead  = false;
                IsLeftEyeAndHead  = false;
                IsRightEyeAndHead = true;
                IsJustHeadAndHead = false;
                IsBothEye         = false;
                IsLeftEye         = false;
                IsRightEye        = false;
                mgRightEyeAndHead = new MagnifierWindowRightEyeAndHead(this, mConfiguration, this, controller);
            }

            if (mConfiguration.rightEye == true)
            {
                controller.setMode(MouseController.Mode.RIGHT_EYE);
                IsBothEyeAndHead  = false;
                IsLeftEyeAndHead  = false;
                IsRightEyeAndHead = false;
                IsJustHeadAndHead = false;
                IsBothEye         = false;
                IsLeftEye         = false;
                IsRightEye        = true;
                mgRightEye        = new MagnifierWindowRightEye(this, mConfiguration, this, controller);
            }

            //Just Head  ---------------------------------------------------------------------------------------------

            if (mConfiguration.justHead == true)
            {
                controller.setMode(MouseController.Mode.JUST_HEAD);
                IsBothEyeAndHead  = false;
                IsLeftEyeAndHead  = false;
                IsRightEyeAndHead = false;
                IsJustHeadAndHead = true;
                IsBothEye         = false;
                IsLeftEye         = false;
                IsRightEye        = false;
                mgJustHead        = new MagnifierWindowHead(this, mConfiguration, this, controller);
            }
        }
Пример #2
0
        private void setGazeControllerMode()
        {
            //Both Eye  ---------------------------------------------------------------------------------------------

            if (mConfiguration.bothEyeAndHead == true)
            {
                IsBothEyeAndHead  = true;
                IsLeftEyeAndHead  = false;
                IsRightEyeAndHead = false;
                IsJustHeadAndHead = false;
                IsBothEye         = false;
                IsLeftEye         = false;
                IsRightEye        = false;
                mgBothEyeAndHead  = new MagnifierWindowsBothEyeAndHead(this, mConfiguration, this);
            }

            if (mConfiguration.bothEye == true)
            {
                IsBothEyeAndHead  = false;
                IsLeftEyeAndHead  = false;
                IsRightEyeAndHead = false;
                IsJustHeadAndHead = false;
                IsBothEye         = true;
                IsLeftEye         = false;
                IsRightEye        = false;
                mgBothEye         = new MagnifierWindowsBothEye(this, mConfiguration, this);
            }

            //Left Eye  ---------------------------------------------------------------------------------------------
            if (mConfiguration.leftEyeAndHead == true)
            {
                IsBothEyeAndHead  = false;
                IsLeftEyeAndHead  = true;
                IsRightEyeAndHead = false;
                IsJustHeadAndHead = false;
                IsBothEye         = false;
                IsLeftEye         = false;
                IsRightEye        = false;
                mgLeftEyeAndHead  = new MagnifierWindowLeftEyeAndHead(this, mConfiguration, this);
            }

            if (mConfiguration.leftEye == true)
            {
                IsBothEyeAndHead  = false;
                IsLeftEyeAndHead  = false;
                IsRightEyeAndHead = false;
                IsJustHeadAndHead = false;
                IsBothEye         = false;
                IsLeftEye         = true;
                IsRightEye        = false;
                mgLeftEye         = new MagnifierWindowLeftEye(this, mConfiguration, this);
            }

            //Right Eye  ---------------------------------------------------------------------------------------------

            if (mConfiguration.rightEyeAndHead == true)
            {
                IsBothEyeAndHead  = false;
                IsLeftEyeAndHead  = false;
                IsRightEyeAndHead = true;
                IsJustHeadAndHead = false;
                IsBothEye         = false;
                IsLeftEye         = false;
                IsRightEye        = false;
                mgRightEyeAndHead = new MagnifierWindowRightEyeAndHead(this, mConfiguration, this);
            }

            if (mConfiguration.rightEye == true)
            {
                IsBothEyeAndHead  = false;
                IsLeftEyeAndHead  = false;
                IsRightEyeAndHead = false;
                IsJustHeadAndHead = false;
                IsBothEye         = false;
                IsLeftEye         = false;
                IsRightEye        = true;
                mgRightEye        = new MagnifierWindowRightEye(this, mConfiguration, this);
            }

            //Just Head  ---------------------------------------------------------------------------------------------

            if (mConfiguration.justHead == true)
            {
                IsBothEyeAndHead  = false;
                IsLeftEyeAndHead  = false;
                IsRightEyeAndHead = false;
                IsJustHeadAndHead = true;
                IsBothEye         = false;
                IsLeftEye         = false;
                IsRightEye        = false;
                mgJustHead        = new MagnifierWindowHead(this, mConfiguration, this);
            }
        }