public MainEngine()
        {
            commandList = CommandSingleton.Instance();

            controlState = new CommandState();

            SetupSpeechRecognition();

            EventSingleton.Instance().fixationEvent += sharedData_fixationEvent;
        }
        public MainEngine()
        {
            commandList = CommandSingleton.Instance();

            controlState = new CommandState();

            SetupSpeechRecognition();


            EventSingleton.Instance().fixationEvent += sharedData_fixationEvent;
        }
Пример #3
0
        public MainEngine()
        {
            sharedData     = SharedDataSingleton.Instance();
            commandList    = CommandSingleton.Instance();
            inputSimulator = sharedData.inputSimulator;

            controlState = new ControlContext();
            controlState.changedState += StateChanged;
            controlState.ControlState  = new CommandState(inputSimulator, controlState);

            //System.Diagnostics.Process.Start("C:/Program Files (x86)/Nuance/NaturallySpeaking13/Program/natspeak.exe");

            SetupSpeechRecognition();

            //Instantiating and starting the eye tracker host
            eyex = new EyeXHost();
            eyex.CreateFixationDataStream(FixationDataMode.Sensitive).Next += (s, e) => Fixation(e.EventType, (int)e.X, (int)e.Y, e.Timestamp);
            eyex.Start();
        }
        public MainEngine()
        {
            sharedData = SharedDataSingleton.Instance();
            commandList = CommandSingleton.Instance();
            inputSimulator = sharedData.inputSimulator;

            controlState = new ControlContext();
            controlState.changedState += StateChanged;
            controlState.ControlState = new CommandState(inputSimulator, controlState);

            //System.Diagnostics.Process.Start("C:/Program Files (x86)/Nuance/NaturallySpeaking13/Program/natspeak.exe");

            SetupSpeechRecognition();

            //Instantiating and starting the eye tracker host
            eyex = new EyeXHost();
            eyex.CreateFixationDataStream(FixationDataMode.Sensitive).Next += (s, e) => Fixation(e.EventType, (int)e.X, (int)e.Y, e.Timestamp);
            eyex.Start();
        }