Back
Login
Register
Login
Register
Millisecond Forums
Home
»
Millisecond Forums
»
Inquisit 5
»
RE: Inputdevice Keyboard
Inputdevice Keyboard
Post Reply
Like
65
Inputdevice Keyboard
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
Brainsrule
Brainsrule
posted 9 Years Ago
ANSWER
Topic Details
Share Topic
Group: Forum Members
Posts: 9,
Visits: 45
How do I edit the BART-Y script to accept inputs from a 2-button response box? Outputs from the box correspond to a '1' and a '2' keyboard press. I'm having trouble finding the proper documentation for this process.
Reply
Like
65
Dave
Dave
posted 9 Years Ago
ANSWER
Post Details
Share Post
Group: Administrators
Posts: 13K,
Visits: 105K
+
x
Brainsrule - Friday, December 09, 2016
How do I edit the BART-Y script to accept inputs from a 2-button response box? Outputs from the box correspond to a '1' and a '2' keyboard press. I'm having trouble finding the proper documentation for this process.
You need to adjust the /inputdevice settings in the script and then adjust any /validresponse, /correctresponse, /isvalidresponse, /iscorrectresponse, /responsemessage, and /branch logic that relies on a trial's response property accordingly.
Reply
Like
68
Dave
Dave
posted 9 Years Ago
ANSWER
Post Details
Share Post
Group: Administrators
Posts: 13K,
Visits: 105K
+
x
Dave - Friday, December 09, 2016
+
x
Brainsrule - Friday, December 09, 2016
How do I edit the BART-Y script to accept inputs from a 2-button response box? Outputs from the box correspond to a '1' and a '2' keyboard press. I'm having trouble finding the proper documentation for this process.
You need to adjust the /inputdevice settings in the script and then adjust any /validresponse, /correctresponse, /isvalidresponse, /iscorrectresponse, /responsemessage, and /branch logic that relies on a trial's response property accordingly.
The attached BARTY script takes input from the keyboard. It relies on the "1" and "2" keys at the top row of the keyboard, their respective keyboard scancodes are 2 and 3 (to check which scancodes your response box returns, use Tools -> Keyboard Scancodes... in Inquisit Lab; adjust the script accordingly, i.e. replace the 2 and 3 scancodes with those pertaining to your response box device).
Attachments
barty_keyboard.iqx
(
619 views,
36.00 KB
)
Reply
Like
73
Brainsrule
Brainsrule
posted 9 Years Ago
ANSWER
Post Details
Share Post
Group: Forum Members
Posts: 9,
Visits: 45
+
x
Dave - Friday, December 09, 2016
+
x
Dave - Friday, December 09, 2016
+
x
Brainsrule - Friday, December 09, 2016
How do I edit the BART-Y script to accept inputs from a 2-button response box? Outputs from the box correspond to a '1' and a '2' keyboard press. I'm having trouble finding the proper documentation for this process.
You need to adjust the /inputdevice settings in the script and then adjust any /validresponse, /correctresponse, /isvalidresponse, /iscorrectresponse, /responsemessage, and /branch logic that relies on a trial's response property accordingly.
The attached BARTY script takes input from the keyboard. It relies on the "1" and "2" keys at the top row of the keyboard, their respective keyboard scancodes are 2 and 3 (to check which scancodes your response box returns, use Tools -> Keyboard Scancodes... in Inquisit Lab; adjust the script accordingly, i.e. replace the 2 and 3 scancodes with those pertaining to your response box device).
Okay I added that and patched up a few more lines, and it works great! thank you!
Reply
Like
66
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Post Reply
Like
65
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Facebook
Explore
Messages
Mentions
Search