[Resolved] OnGazeUpdate never fires
Posted: 09 Jun 2014, 18:01
I'm trying to put together a sample application for the tracker, but since the latest update the OnGazeUpdate event never triggers. Here's the gist of the code:
Any idea as to why it's not picking it up? I'm currently using the eyecontrolclient to do calibration; does it now require that the host application do it?
- Code: Select all
public class GazePoint : IGazeListener
{
{public GazePoint()
{
adjustment = new Point(0, 0);
// Connect client
GazeManager.Instance.Activate(GazeManager.ApiVersion.VERSION_1_0, GazeManager.ClientMode.Push);
// Register this class for events
GazeManager.Instance.AddGazeListener(this);
pointLog = new Point[1];
}
Point[] p;
public void OnGazeUpdate(TETCSharpClient.Data.GazeData gazeData)
{
if (pointLog.Length < 30)
{
Point[] newPoint = new Point[pointLog.Length + 1];
for (int i=0;i<pointLog.Length;i++)
{
newPoint[i + 1] = pointLog[i];
}
pointLog = newPoint;
}
double gX = gazeData.SmoothedCoordinates.X;
double gY = gazeData.SmoothedCoordinates.Y;
Any idea as to why it's not picking it up? I'm currently using the eyecontrolclient to do calibration; does it now require that the host application do it?