Reply To: Keeping track of participant accuracy

PennController for IBEX Forums Support Keeping track of participant accuracy Reply To: Keeping track of participant accuracy

#5967
Jeremy
Keymaster

Hi,

There is no selected test for Key elements, what you are looking for is test.pressed

Example:

newTrial(
    newKey("test", "ArrowLeft", "ArrowRight")
        .wait()
        .test.pressed( "ArrowLeft" )
        .success( newText("Left").print() )
        .failure( newText("Right").print() )
    ,
    newButton().wait()
)

Jeremy