Dear Chris,
I hope you are doing well!
I am a beginner in coding and I have to perform a decision-making experiment and I need some help.
I want my code to include:
1. Text to include some information about the experiment (AND if that is possible)
2. Connect it to the eye trackers, keyboard and mouse
iodevice/usbhid_generic keyboard_device {
usage_page = 1;
usage = 6;
}
iochannel/usbhid_input_channel keyboard_input {
device = keyboard_device;
usage_page = 7;
usage = 0;
value = selected_index;
}
iodevice/eyelink_tracker eye_tracker {}
3. Around 7-8 trials with blue circles, with randomized positions, of which 1 has also light blue inside. The correct choice is always the double-colored circle
Example of code:
stimulus/ellipse circle_4 {
x_size = 0.1;
y_size = 0.1;
position = [-0.3, 0.0];
color = [0, 0, 1];
}
stimulus/ellipse circle_5
{
x_size = 0.1;
y_size = 0.1;
position = [-0.1, 0.0];
color = [0.5, 0.7, 1];
}
stimulus_group circles
{
stimuli = [circle_1, circle_2, circle_3, circle_4, circle_5,
circle_6, circle_7, circle_8, circle_9, circle_10];
}
4. Sound when the player chooses the correct circle
stimulus/sound correct_sound
{
path = ‘sounds/correct.wav’;
}
stimulus/sound incorrect_sound
{
path = ‘sounds/incorrect.wav’;
}
5. How to perform the protocol
6. A scoreboard on the top right corner.
Thanks a lot beforehand,
Cheers,
Vag