~ubuntu-branches/ubuntu/trusty/psychtoolbox-3/trusty-proposed

« back to all changes in this revision

Viewing changes to Psychtoolbox/PsychDemos/MouseTraceDemo.m

  • Committer: Package Import Robot
  • Author(s): Yaroslav Halchenko
  • Date: 2013-11-19 23:34:50 UTC
  • mfrom: (3.1.4 experimental)
  • Revision ID: package-import@ubuntu.com-20131119233450-f7nf92vb8qavjmk8
Tags: 3.0.11.20131017.dfsg1-3
Upload to unsable since fresh glew has arrived to sid!

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
    Screen('Flip', theWindow);
52
52
    while (1)
53
53
        [x,y,buttons] = GetMouse(whichScreen);
54
 
        if buttons(1) | KbCheck
 
54
        if buttons(1) || KbCheck
55
55
          break;
56
56
        end
57
57
    end
71
71
        if ~buttons(1)
72
72
            break;
73
73
        end
74
 
        if (x ~= theX | y ~= theY)
 
74
        if (x ~= theX || y ~= theY)
75
75
            [numPoints, two]=size(thePoints);
76
76
            for i= 1:numPoints-1
77
77
                Screen(theWindow,'DrawLine',128,thePoints(i,1),thePoints(i,2),thePoints(i+1,1),thePoints(i+1,2));