Beispiel #1
0
 private void LeftArrow_HasGazeChanged(object sender, Tobii.Interaction.Wpf.HasGazeChangedRoutedEventArgs e)
 {
     if (e.HasGaze.Equals(true))  // If looking upon the left arrow
     {
         SaveGazeDatas("3");
     }
 }
Beispiel #2
0
 private void rbot_HasGazeChanged(object sender, Tobii.Interaction.Wpf.HasGazeChangedRoutedEventArgs e)
 {
     if (e.HasGaze)
     {
         var         bitmapPath  = @"/Eye Tracking Quiz;component/Resources/green.png";
         BitmapImage bitmapImage = new BitmapImage(new Uri(bitmapPath, UriKind.Relative));
         rbot.Source = bitmapImage;
         rbotWatched = true;
         if (rtopWatched && lbotWatched && ltopWatched)
         {
             terzaLinea.Visibility = Visibility.Visible;
             terzaLinea.Text       = "Ora sei abbastanza pratico! Preparati a rispondere alle domande in: ";
             centrale.Text         = "3";
             startTimer();
         }
     }
 }