psychopy.org | Reference | Downloads | Github

Visual and mouse control

Hi all, I am trying to create a visual plus cursor control stimuli. I just wanted to know whether it is possible to move the cursor to the visual stimuli (can be any shapes like squares, rectangles, circles etc. at four positions -top, bottom, right and left) in Psychopy?

Has anyone tried to do something similar? If so, could you please suggest some ideas to create this?

Thanks in Advance!

Check out the mouse.py demo, from the Demos -> Input menu in the Coder view. This shows how to control the position of stimuli using the mouse (I think that is what you are asking for).

Thanks Michael. I have already checked that.
But I just wanted to know if I can move the cursor (dot) to the circle as in mouse.py experiment by some method (Like assign keyboard values - if I tap one key, say space bar move to specific distance, tap delete, move back etc.)
With mouse.py, I could see the circle moving if i scroll on my touchpad. I am trying to create a stimuli in Psychopy in the above mentioned idea and later integrate with brain signals to move the cursor(dot) to the stimuli (circle).

Thanks.

Yes. Based on what key is pressed, you can just update the stimulus position:

http://www.psychopy.org/api/visual/imagestim.html#psychopy.visual.ImageStim.pos

Thanks for the help. I will work on it.