예제 #1
0
 private static void gazeCallback(object s, EyeXFramework.GazePointEventArgs e)
 {
     if (timerInMilli == 0)
     {
         sw.WriteLine("timestamp;x;y;region;buchstabe");
         timerInMilli = e.Timestamp;
     }
     try {
         //Writes the method name with the exception and writes the exception underneath
         sw.WriteLine(String.Format("{0};{1};{2}", e.Timestamp - timerInMilli, e.X, e.Y));
     }
     catch (IOException)
     {
     }
 }
예제 #2
0
 private void newPoint(object s, EyeXFramework.GazePointEventArgs e)
 {
     tw.WriteLine(e.X.ToString() + delim + e.Y.ToString());
 }
예제 #3
0
 /*
  * Update gaze point (track) from new gaze position.
  */
 private void gazePoint(object s, EyeXFramework.GazePointEventArgs e)
 {
     track.X = track.X * .8 + e.X * .2;
     track.Y = track.Y * .8 + e.Y * .2;
 }
예제 #4
0
 private void newGazePoint(object s, EyeXFramework.GazePointEventArgs e)
 {
     track.X = e.X;
     track.Y = e.Y;
 }
예제 #5
0
 private void gazePoint(object s, EyeXFramework.GazePointEventArgs e)
 {
     fastTrack = new Point(e.X, e.Y);
 }