Esempio n. 1
0
        private void VoiceCommandDetected(string command)
        {
            //Console.Out.WriteLine("Voice command detected: " + command);
            Log.Info("Voice command recognized: " + command);
            if (_comInterface != null)
            {
                _comInterface.VoiceCommandDetected(command);
            }

            if (command.Equals("mark one") && _points != null)
            {
                _points    = new Vector3[2];
                _points[1] = _trackingEngine.GetHandLocation(true);
            }
            else if (command.Equals("mark two") && _points != null)
            {
                _points[1] = _trackingEngine.GetHandLocation(true);

                if (!"".Equals(objectContext))
                {
                    _gestureProcessor.CreateObject(_points, objectContext);
                    objectContext = "";
                    _points       = null;
                }
            }
        }