|
12 | 12 | thisEvent.direction = cfg.design.directions(iBlock, iEvent); |
13 | 13 | thisEvent.speedPix = cfg.design.speeds(iBlock, iEvent); |
14 | 14 | thisEvent.target = cfg.design.fixationTargets(iBlock, iEvent); |
15 | | - thisEvent.fixationPosition = cfg.design.blockFixationPosition{iBlock}; |
| 15 | + |
| 16 | + |
16 | 17 |
|
17 | 18 | % If this frame shows a target we change the color of the cross |
18 | 19 | thisFixation.fixation = cfg.fixation; |
|
28 | 29 | % |
29 | 30 |
|
30 | 31 | thisEvent.dotCenterXPosPix = 0; |
31 | | - |
32 | | - switch thisEvent.fixationPosition |
33 | | - case 'fixation_right' |
34 | | - cfg.aperture.xPosPix = -abs(cfg.aperture.xPosPix); |
35 | | - |
36 | | - thisEvent.dotCenterXPosPix = cfg.aperture.xPosPix; |
37 | | - |
38 | | - thisFixation.fixation.xDisplacement = cfg.design.xDisplacementFixation; |
39 | | - thisFixation = initFixation(thisFixation); |
40 | | - |
41 | | - case 'fixation_left' |
42 | | - cfg.aperture.xPosPix = +abs(cfg.aperture.xPosPix); |
43 | | - |
44 | | - thisEvent.dotCenterXPosPix = cfg.aperture.xPosPix; |
45 | | - |
46 | | - thisFixation.fixation.xDisplacement = -cfg.design.xDisplacementFixation; |
47 | | - thisFixation = initFixation(thisFixation); |
48 | | - |
| 32 | + |
| 33 | + if isfield(cfg.design, 'localizer') && strcmpi(cfg.design.localizer, 'MT_MST') |
| 34 | + |
| 35 | + thisEvent.fixationPosition = cfg.design.blockFixationPosition{iBlock}; |
| 36 | + |
| 37 | + switch thisEvent.fixationPosition |
| 38 | + case 'fixation_right' |
| 39 | + cfg.aperture.xPosPix = -abs(cfg.aperture.xPosPix); |
| 40 | + |
| 41 | + thisEvent.dotCenterXPosPix = cfg.aperture.xPosPix; |
| 42 | + |
| 43 | + thisFixation.fixation.xDisplacement = cfg.design.xDisplacementFixation; |
| 44 | + thisFixation = initFixation(thisFixation); |
| 45 | + |
| 46 | + case 'fixation_left' |
| 47 | + cfg.aperture.xPosPix = +abs(cfg.aperture.xPosPix); |
| 48 | + |
| 49 | + thisEvent.dotCenterXPosPix = cfg.aperture.xPosPix; |
| 50 | + |
| 51 | + thisFixation.fixation.xDisplacement = -cfg.design.xDisplacementFixation; |
| 52 | + thisFixation = initFixation(thisFixation); |
| 53 | + |
| 54 | + end |
| 55 | + |
49 | 56 | end |
50 | 57 |
|
51 | 58 | varargout = {thisEvent, thisFixation, cfg}; |
|
0 commit comments