Millisecond Forums

mouse wheel to scroll through images, click to select specific image

https://forums.millisecond.com/Topic13620.aspx

By bmatt - 6/19/2014

I am wanting to have participants scroll through a set of images with the mouse wheel, such that the set begins with one image and scrolling up will progress through the set in a sequential order whereas scrolling down will progress in the reverse order (importantly, I only want participants to see one image at a time).  Participants would be choosing only one image as their response by clicking on the image.  Is there a way to do this?

Thanks in advance.
By Dave - 6/19/2014

No, this isn't possible with a mousewheel-response. There isn't any way to distinguish between moving the wheel "up" or "down". The only thing you can do is to cycle through the stimuli via wheel movement as in:

<block myblock>
/ stop = [trial.mytrial.response=="lbuttondown"]
/ trials = [1=mytrial]
</block>

<trial mytrial>
/ stimulusframes = [1=mytext]
/ validresponse = (lbuttondown, mousewheel)
/ inputdevice = mouse
/ branch = [trial.mytrial]
</trial>

<text mytext>
/ items = ("A", "B", "C", "D")
/ select = sequence
</text>