Home Forums Software Development Stream Gaze Data In Windows Form Application

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #4021
    Greegory
    Participant

    Hello,
    How translate in variable stream data in windows form application?

    
    using System;
    using System.Collections.Generic;
    using System.Drawing;
    using System.Windows.Forms;
    using EyeXFramework;
    using System.Timers;
    using Tobii.EyeX.Framework;
    
    namespace eyetx2
    {
    
    	public partial class MainForm : Form
    	{
    		public MainForm()
    		{
    
    			InitializeComponent(); 
    			button1.Text="GazePoint";
     
              using (var eyeXHost = new EyeXHost())
                {
    
                    using (var lightlyFilteredGazeDataStream = eyeXHost.CreateGazePointDataStream(GazePointDataMode.LightlyFiltered))
                    {
                        eyeXHost.Start();
    
                        lightlyFilteredGazeDataStream.Next += (s, e) => 
                       { 
                         
    			button1.Location= new Point(e.X,e.Y);
    
    		   };
    			
    			}
    			 
    		}
    	}
    }
    }
    #4029
    Jenny [Tobii]
    Participant

    Hi Greegory,

    Can you be a bit more specific what the problem is, please? What do you mean by “translate”, and what variable? What do you want to do? What is not working?

    #4042
    Greegory
    Participant

    Of course all working )) I found out that in C# are using so-called “anonymous method”. And in this type of method I can’t using variables outside of the this method. It becouse I’m not a programmer, and therefore it is bit difficult to me )).
    Can you show me, how I can using stream gaze point data from device in the cycle in my program. If it possible in C++. Thanks you ))

    #4043
    Greegory
    Participant

    Now I can using device only in console application in your minimal cycle.

    #5699
    xuan bao wei
    Participant

    you should use beginvok method to access the uicontrol

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.