Hello everyone,
I’m trying to run an experiment with a correct and wrong answer that can be clicked with the mouse (just one click). The experiment must be executed from a touchscreen laptop, but it seems it requires double tap for response (while mouse still requires one click). The experiments runs perfectly apart from this…
Does anyone know how to solve this? I didn’t write the code, just built the experiment, but if helps I’ll put the code of the mouse-response down the picture.
correct = new visual.ImageStim({
win : psychoJS.window,
name : ‘correct’, units : undefined,
image : undefined, mask : undefined,
ori : 0, pos : [(- 0.2), (- 0.3)], size : [0.15, 0.15],
color : new util.Color([1, 1, 1]), opacity : 1,
flipHoriz : false, flipVert : false,
texRes : 512, interpolate : true, depth : -4.0
});
wrong = new visual.ImageStim({
win : psychoJS.window,
name : ‘wrong’, units : undefined,
image : ‘files/wrong.png’, mask : undefined,
ori : 0, pos : [0.2, (- 0.3)], size : [0.15, 0.15],
color : new util.Color([1, 1, 1]), opacity : 1,
flipHoriz : false, flipVert : false,
texRes : 512, interpolate : true, depth : -5.0
});
mouse = new core.Mouse({
win: psychoJS.window,
});
mouse.mouseClock = new util.Clock();
// Initialize components for Routine “feedback”
feedbackClock = new util.Clock();
soundfile = [“files/check.wav”];