By anneleen - 5/5/2014
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
|
By Dave - 5/5/2014
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>
|
|