OpenSesame IAT touch: issue with response_touch
Hi,
I am new to OpenSesame and it may be a very trivial issue. I am using the German-British IAT example from Open Sesame and I want to create a touch screen version (for Android).
- I changed the mapping from 'left' to 1 and from 'right' to 2:
if var.subject_parity == 'even':
var.british_response = 1
var.german_response = 2
else:
var.german_response = 1
var.british_response = 2
var.funny_response = 1
var.boring_response = 2
- I created a touch_1 response instead of the keyboard response (with 2 columns and 1 row)
I was expecting to get in the variable response_touch_1: 1 when tapping the left part of the screen and 2 when tapping the left part. However, the response_touch_1 variable is always equal to 1 (and therefore for instance for british, the variable correct is always equal to 1 and for german always equal to 0).
I am not sure what I am doing wrong.
Thanks,
Michela
Comments
Hi Michela,
Thanks for pointing this out. It's a bug due to some changes in the way that responses are handled (#440). This will be fixed for the next maintenance release, but for now you could do two things.
var.responseby inserting aninline_scriptafter thetouch_responsewith the following code in the Run phase:Hope this helps!
Cheers,
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!