Page 1 of 1

[Resolved] OnGazeUpdate never fires

PostPosted: 09 Jun 2014, 18:01
by sirnumbskull
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:
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?

Re: OnGazeUpdate never fires

PostPosted: 09 Jun 2014, 18:40
by sirnumbskull
Code: Select all
            if (!GazeManager.Instance.IsActivated)
            {
                MessageBox.Show("EyeTribe Server has not been started");   
            }

If I add the above code, it always says that the eyetribe server hasn't been started, even though I'm staring at the DOS window that says that it has (the eyecontrolclient seems to find the server just fine). I'm a bit stumped.

Re: OnGazeUpdate never fires

PostPosted: 09 Jun 2014, 19:20
by sirnumbskull
Nevermind, it looks like, in addition to the .dll, the other files that are produced after a successful build (json, etc.) need to be in the directory with the .dll