Problem visualizing the mouse while presenting stimuli and collecting mouse clicks.
I am collecting mouse clicks using an inline script during stimulus presentation.
The script looks something like this:
while elapsed_time < Timeout:
button, position, clicktime = my_mouse.get_click(timeout=Timeout - elapsed_time)
The reason I flush the mouse is that was the only way I managed to get the clicks I wanted in each cycle of the "while" loop, and I added my_mouse.show_cursor(show='true') because I thought the flush changes the definition that the cursor should show.
What happens is that a stimulus is presented, for a short flash you can see the mouse, and then it disappears until you click on the stimulus somewhere... then it reappears for a short flash and disappears again...
My final goal is to record mouse clicks on a stimulus presented but the subjects need to see the cursor to know where they are pressing.