Millisecond Forums

Touch pad Question

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

By christinahaywood - 2/19/2016

Can Inquisit receive input from anything pad-like besides a tablet? For example, a mouse touchpad (not a mouse click)?

Thanks.
By Dave - 2/19/2016

Yes, a touchpad (such as you find in most laptops) should work just fine -- the OS treats it just like a mouse, i.e. you set /inputdevice to mouse and work with standard mouse events in /validresponse etc.

<values>
/ tapcount = 0
</values>

<block myblock>
/ trials = [1-10 = mytrial]
</block>

<trial mytrial>
/ ontrialend = [values.tapcount += 1]
/ stimulusframes = [1=taps]
/ inputdevice = mouse
/ validresponse = (lbuttondown)
</trial>

<text taps>
/ items = ("<%values.tapcount%> taps received.")
</text>