Millisecond Forums

recognition of button presses and releases

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

By piotr_styrkowiec - 6/3/2014

Hello
Does Inquisit 4 recognise key presses and key releases for keyboard input? If yes, how can this be achieved?
regards
Piotr


By Dave - 6/3/2014

For a button press, use the key's scancode:

/ validresponse = (57)

For a release, preface the scancode with a minus-sign:

/ validresponse = (-57)
By piotr_styrkowiec - 6/3/2014

Thanks.
Now the question is how to record in a data file many responses from a single trial. For example, during one trial participant presses at the beginning the button '1' and holds it for a short period, than s/he releases button '1' and presses the button '2' and again holds it for a while. So in the data file I would need information about what button was pressed or released and when. Is it possible to get something like that?
By Dave - 6/3/2014

An instance of <trial> element *collects* a single response -- you cannot collect multiple responses in a single instance. You need to run a trial repeatedly to do that.
By piotr_styrkowiec - 6/3/2014

Ok, thank you.