Hi,
We are using Inquisit for Cyberball in our lab and until now, participants selected which player they wanted to throw the ball to using the mouse. Now, we want them to use the keyboard. How can I assign keys to each player? Also, how can I make sure that those keys are the valid responses in each trial?
Here's an example of a trial where we defined the input device as the mouse:
<trial instructions12>
/ stimulusframes = [1=cyberball, turninstructions12, start]
/ validresponse = (start)
/ inputdevice = mouse
/ responsemessage = (start, blankscreen, 0)
/ recorddata = false
</trial>
Here's another example:
<trial yourturnexcludedbyA>
/ stimulusframes = [1=ball3, blank2, blank1]
/ validresponse = (player1, player2)
/ inputdevice = mouse
/ branch = [if (trial.yourturnexcludedbyA.response == "player1") trial.player1turnexcludedbyA3to1]
/ branch = [if (trial.yourturnexcludedbyA.response == "player2") trial.player2turnexcludedbyA3to2]
</trial>
Thank you in advance,
Gizem