Esempio n. 1
0
        public EyeTrackerPlugin()
        {
            EyeTrackerConfig cfg = new EyeTrackerConfig();

            mOrientationChangeHandler = new EventHandler(mKinectOrientation_Changed);

            mKinectPosition             = cfg.Position;
            mKinectOrientation          = new Rotation(cfg.Pitch, cfg.Yaw);
            mControlX                   = cfg.ControlX;
            mKinectOrientation.Changed += new EventHandler(mKinectOrientation_Changed);

            Nui.SkeletonLost += new SkeletonTrackDelegate(Nui_SkeletonLost);

            mHead           = Nui.joint(Nui.Head);
            mHead.OnChange += new ChangeDelegate(mHead_OnChange);
        }
        public EyeTrackerPlugin()
        {
            EyeTrackerConfig cfg = new EyeTrackerConfig();

            mOrientationChangeHandler = new EventHandler(mKinectOrientation_Changed);

            mKinectPosition = cfg.Position;
            mKinectOrientation = new Rotation(cfg.Pitch, cfg.Yaw);
            mControlX = cfg.ControlX;
            mKinectOrientation.Changed += new EventHandler(mKinectOrientation_Changed);

            Nui.SkeletonLost += new SkeletonTrackDelegate(Nui_SkeletonLost);

            mHead = Nui.joint(Nui.Head);
            mHead.OnChange += new ChangeDelegate(mHead_OnChange);
        }