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) { } }
private void newPoint(object s, EyeXFramework.GazePointEventArgs e) { tw.WriteLine(e.X.ToString() + delim + e.Y.ToString()); }
/* * 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; }
private void newGazePoint(object s, EyeXFramework.GazePointEventArgs e) { track.X = e.X; track.Y = e.Y; }
private void gazePoint(object s, EyeXFramework.GazePointEventArgs e) { fastTrack = new Point(e.X, e.Y); }