If this template helps then use it. If not then just delete and start from scratch.
OS (e.g. Win10): Mac OS
PsychoPy version: 2021.2.3.
Standard Standalone? (y/n) Y
**What are you trying to achieve?
Upon pressing a mouse in my first routine, the function
if mouse.isPressedIn(button): gets triggered in a subsequent routine. Also,
print(mouse.getPressed()) returns [1,0,0] in this second routine, which it should’t be. The mouse click buffer should reset in each new routine. I am trying to force PsychoPy to reset the buffer of clicks to [0,0,0] so it doesn’t trigger the
if function in the second routine.