Hi, I’ve encountered this problem for mouse position. For each trial, I’d like the mouse to appear at the center of the screen when it’s time for participants to respond. However, with the code below, the mouse does appear at the right time but it’s always at the up-right corner of the screen. Can anyone help me with this?
Thank you!
I’m using Mac OS Mojave.
Below is my code:
if t >= click_on:
resp_msg.draw()
fix.setAutoDraw(False)
click = event.Mouse(visible=True, win=win)
# check the list of shapes
clicked = False
#while not clicked:
for i, choice in enumerate(choices):
if click.isPressedIn(choices[i]): # click any object
clicked = True
response = i
click_time = expClock.getTime()
resp_time = click_time - click_on
if response == sample_index:
correct_ans = 1
elif response != sample_index:
correct_ans = 0
win.flip()
reset_auto_draw(stimuli_set)
continueRoutine = False
win.mouseVisible = False
click.setPos(newPos=(0,0))
break # exit this loop