Home › Forums › Software Development › Stream Gaze Data In Windows Form Application
- This topic has 4 replies, 3 voices, and was last updated 8 years, 1 month ago by xuan bao wei.
- AuthorPosts
- 05/01/2016 at 11:17 #4021GreegoryParticipant
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); }; } } } } }
07/01/2016 at 11:52 #4029Jenny [Tobii]ParticipantHi 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?
08/01/2016 at 13:02 #4042GreegoryParticipantOf 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 ))08/01/2016 at 13:09 #4043GreegoryParticipantNow I can using device only in console application in your minimal cycle.
23/09/2016 at 15:43 #5699xuan bao weiParticipantyou should use beginvok method to access the uicontrol
- AuthorPosts
- You must be logged in to reply to this topic.