Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

OpenSesame IAT touch: issue with response_touch

edited July 2016 in OpenSesame

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).

  1. 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
  1. 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.

    1. Stick to version 3.0.7, and switch to 3.1.2 once it is released with this fix.
    2. Manually determine var.response by inserting an inline_script after the touch_response with the following code in the Run phase:
    if var.cursor_x > 0:
        var.response = 2
    else:
        var.response = 1
    

    Hope this helps!

    Cheers,
    Sebastiaan

Sign In or Register to comment.