Hi all,
So I’m using a Windows 10 laptop/tablet hybrid. I’ve created a touchscreen task to be used with children where they tab on different stim to give their answer. I ran into lots of issues because of the multi-touch aspect of my screen. I tried using the clickable stimuli within the mouse components of the Builder, but it required a double tap to register the response which isn’t ideal. The only thing I’ve managed to get to work is this code component on every frame:
if topLeftImg.contains(mouse) and eval(corrAns) == topLeftImg:
continueRoutine = False
elif topLeftImg.contains(mouse) and eval(corrAns) == topLeftImg:
continueRoutine = False
elif topRightImg.contains(mouse) and eval(corrAns) == topRightImg:
continueRoutine = False
elif bottomLeftImg.contains(mouse) and eval(corrAns) == bottomLeftImg:
continueRoutine = False
elif bottomRightImg.contains(mouse) and eval(corrAns) == bottomRightImg:
continueRoutine = False
else:
continueRoutine = True
Just to clarify, there’s a correct answer and I only want the trial to end if the kids click on the correct answer. This component works perfectly (I’ve tried many different things!), but I want it to be shown in the data output what the kid clicked on and I don’t know how to add a column that says which image was clicked on. How do I write this to the file?
Does anyone have any guidance on how to achieve this?
Any advice would be appreciated!