Using keyboard instead of a mouse


Author
Message
gsu
gsu
Distinguished Member (4.1K reputation)Distinguished Member (4.1K reputation)Distinguished Member (4.1K reputation)Distinguished Member (4.1K reputation)Distinguished Member (4.1K reputation)Distinguished Member (4.1K reputation)Distinguished Member (4.1K reputation)Distinguished Member (4.1K reputation)Distinguished Member (4.1K reputation)
Group: Forum Members
Posts: 42, Visits: 27

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

Tags
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
gsu - 11 Years Ago
Dave - 11 Years Ago
gsu - 11 Years Ago
Dave - 11 Years Ago
gsu - 11 Years Ago
                         Please review my 1st reply where you will find all of this already...
Dave - 11 Years Ago

Reading This Topic

Explore
Messages
Mentions
Search