Thaiz / psychopy

Automatically exported from code.google.com/p/psychopy
0 stars 0 forks source link

Mouse click force end routine issue #76

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create routine with no time limit
2. Create mouse component that will force end the routine on a click
3. run the experiment

What is the expected output? What do you see instead?
The routine should end on a (or any) mouse click. Instead the routine does not 
end (does end if one presses esc or includes a keyboard component that force 
ends the routine).

What version of the product are you using? On what operating system?
Tried on both Mac OS 10.6.8 and Windows Vista (versions 1.73.04 and 1.73.03, 
respectively).

Please provide any additional information below.
Inserting a code snippet that resembles the keyboard component key press check 
fixes the issue. From what I can tell the mouse button press checks are not 
being inserted correctly (or at all) into the routine's compiled code.

Attached are two experiments, they both should draw a screen with a text 
stimulus and (should) end with a mouse or keyboard button press. The first is 
compiled straight from the builder and the second includes correcting code 
(starts at line 104).

Original issue reported on code.google.com by esteban....@gmail.com on 23 Feb 2012 at 6:20

Attachments:

GoogleCodeExporter commented 8 years ago
Thanks for spotting this. There was a missing newline, which meant the if... 
statement was being included in the preceding code comment. So it was a 
2-character fix! ;-)
https://github.com/psychopy/psychopy/commit/72a4e43f0491cc8d9579bb17167f8f5b1a2b
4f16

By the way, issues are now hosted on github, rather than googlecode.
https://github.com/psychopy/psychopy/issues

cheers,
Jon

Original comment by jon.pei...@gmail.com on 24 Feb 2012 at 12:04