-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathTestEyeTrackerError.m
More file actions
37 lines (30 loc) · 939 Bytes
/
TestEyeTrackerError.m
File metadata and controls
37 lines (30 loc) · 939 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
function EyeErrorResult=TestEyeTrackerError(Calib,mOrder,Constants)
global KEYBOARD SPACEKEY EXPWIN BLACK
% DrawFormattedText(EXPWIN,'Click mouse to Start Calibration Check','Center',...
% Calib.screen.height/3, [255 255 255]);
% Screen(EXPWIN,'Flip');
%
% clickToStart=1;
% while (clickToStart) % wait for press
% [x,y,buttons] = GetMouse(Calib.screenNumber);
% if(any(buttons))
% clickToStart=0;
% end
% end
WaitSecs(2)
errorTestDat=TrackErrorTest_Infant(Calib,mOrder,Constants);
EyeErrorResult = PlotTrackError(mOrder, Calib, errorTestDat);
clickToStart=1;
% while (clickToStart) % wait for press
% [x,y,buttons] = GetMouse(Calib.screenNumber);
% if(any(buttons))
% clickToStart=0;
% end
% end
while (clickToStart) % wait for press
[~,~,keyCode]=PsychHID('KbCheck', KEYBOARD);
if keyCode(SPACEKEY)
clickToStart=0;
end
end
return