[Resolved] OnGazeUpdate never fires

Forum to report issues and bugs on Windows 7, 8, and 10.

[Resolved] OnGazeUpdate never fires

Postby sirnumbskull » 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:
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?
sirnumbskull
 
Posts: 15
Joined: 07 Sep 2013, 02:12

Re: OnGazeUpdate never fires

Postby sirnumbskull » 09 Jun 2014, 18:40

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.
sirnumbskull
 
Posts: 15
Joined: 07 Sep 2013, 02:12

Re: OnGazeUpdate never fires

Postby sirnumbskull » 09 Jun 2014, 19:20

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
sirnumbskull
 
Posts: 15
Joined: 07 Sep 2013, 02:12


Return to Issues and troubleshooting - Windows



cron