Collecting data till button is pressed
I created an eye-tracking experiment: the person is presented a picture and then he either presses 1st or 2nd button. While he is looking i want to collect the gaze data.
The problem is - it only goes through loop once and collects only 1 value of the Gaza_data even if i wait for long time before pressing the button. What could be the problem?