private void pictureBox1_Click(object sender, EventArgs e) { using (var eyeXHost = new EyeXHost()) { // Create a data stream: lightly filtered gaze point data. // Other choices of data streams include EyePositionDataStream and FixationDataStream. using (var lightlyFilteredGazeDataStream = eyeXHost.CreateGazePointDataStream(GazePointDataMode.LightlyFiltered)) { // Start the EyeX host. eyeXHost.Start(); //label1.Text= ("Gaze point at ({0:0.0}, {1:0.0}) @{2:0}", e.X, e.Y, e.Timestamp); //label1.Text = "Hi"; // Write the data to the console. lightlyFilteredGazeDataStream.Next += (s,entry) => Console.WriteLine("Gaze point at ({0:0.0}, {1:0.0}) @{2:0}", entry.X, entry.Y, entry.Timestamp); // Let it run until a key is pressed. MessageBox.Show("Gaze data recording, press any key to exit..."); } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)