Exemple #1
0
        public SimulatedEyeTrackingProvider()
        {
            _mouseHookSamplingTimer = new Timer()
            {
                Interval = 50
            };

            _mouseHookSamplingTimer.Tick += (s, e) => PointAvailable?.Invoke(this, new System.Windows.Point(Cursor.Position.X, Cursor.Position.Y));

            _mouseHookSamplingTimer.Start();
        }
 public TobiiEyeTrackingProvider()
 {
     gazeHost                  = new Host();
     gazePointDataStream       = gazeHost.Streams.CreateGazePointDataStream(Tobii.Interaction.Framework.GazePointDataMode.LightlyFiltered);
     gazePointDataStream.Next += (s, e) =>
     {
         Task.Run(() =>
         {
             PointAvailable?.Invoke(this, new Point(e.Data.X, e.Data.Y));
         });
     };
 }