I guess at that point (in the feedback routine), the circle is no longer is being displayed, so the test will never pass. I think this follows on from this other thread below. The key is to use a variable that will persist and pass from one routine to another, not something that is time-sensitive (such as whether the mouse is currently clicked in a stimulus):
Michael
4
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Problem providing feedback with if mouse.isPressedIn() | 0 | 486 | April 12, 2022 | |
| Mouse click feedback | 3 | 703 | February 3, 2021 | |
| Adding instant feedback on mouse click | 4 | 938 | March 22, 2021 | |
| Mouse click in one routine triggers mouse.isPressedIn in a subsequent routine | 4 | 843 | September 14, 2021 | |
| Mouse timing (mouse.time[-1]) options to give "missed" feedback | 6 | 115 | December 14, 2024 |