mouseover as a validresponse


Author
Message
anneleen
anneleen
Associate Member (256 reputation)Associate Member (256 reputation)Associate Member (256 reputation)Associate Member (256 reputation)Associate Member (256 reputation)Associate Member (256 reputation)Associate Member (256 reputation)Associate Member (256 reputation)Associate Member (256 reputation)
Group: Forum Members
Posts: 1, Visits: 7
Hi,

I am running an experiment in which I would like to define the valid responses as respondents moving their mouse across either one of two pictures presented on the screen. So far I have specified 'mouseover' as the inputdevice for the trial and indicated the two pictures as valid responses, though this still requires the responsdents to click on the two pictures apparently. Does anyone know how to specifiy a mouseover event in inquisit?

Thanks,
Anneleen
Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 12K, Visits: 98K
I don't think /inputdevice=mouseover will work for this, at least not currently. However, here's a way to make do without it:

<expressions>
/ ismouseovera = (mouse.x > 0.05*display.width && mouse.x <  0.35*display.width && mouse.y > 0.35*display.height && mouse.y < 0.65*display.height)
/ ismouseoverb = (mouse.x > 0.65*display.width && mouse.x <  0.95*display.width && mouse.y > 0.35*display.height && mouse.y < 0.65*display.height)
</expressions>

<block myblock>
/ trials = [1-4=sequence(centermousetrial,mouseovertrial)]
</block>

<trial centermousetrial>
/ stimulusframes = [1=clickhere]
/ inputdevice = mouse
/ validresponse = (clickhere)
</trial>

<text clickhere>
/ items = ("Click here!")
</text>

<trial mouseovertrial>
/ posttrialpause = 500
/ stimulusframes = [1=a,b]
/ inputdevice = mouse
/ validresponse = (mousemove)
/ isvalidresponse = [expressions.ismouseovera || expressions.ismouseoverb]
</trial>

<text a>
/ items = ("A1", "A2", "A3", "A4")
/ txbgcolor = (red)
/ size = (30%,30%)
/ position = (20%,50%)
</text>

<text b>
/ items = ("B1", "B2", "B3", "B4")
/ txbgcolor = (green)
/ size = (30%,30%)
/ position = (80%,50%)
</text>

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search