Home Forums Software Development I have a problem with winking(c#)

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #7267
    Mustafa UNLU
    Participant

    With the following code I can find the eyes are closed or open but what I want is if the left eye is closed.The click event occur. How can I do this?

     public static void Main(string[] args)
            {
                EyeXHost host = new EyeXHost();
                host.Start();
                EyePositionDataStream eyePosition = host.CreateEyePositionDataStream();
                eyePosition.Next += (s, e) =>
                {
                    Noktalama.solBakis = (bool)(e.LeftEye.IsValid);
                    Noktalama.sagBakis = (bool)(e.RightEye.IsValid);
    
                };
               
    
                Console.In.Read();
            }
    #7270
    Grant [Tobii]
    Keymaster

    Hi @munlu, if you check out the Tobii Core API reference guide with respect to the Eye Position Data class, herein
    we describe the methodology for obtain validity codes for each eye

    For example,

    HasLeftEyePosition

    Gets a value indicating the validity of the left eye position.
    Declaration

    public bool HasLeftEyePosition { get; }

    Further details online @

    https://tobii.github.io/CoreSDK/api/Tobii.Interaction.EyePositionData.html

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