Group: Administrators
Posts: 13K,
Visits: 104K
|
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>
|