PennController for IBEX › Forums › Support › About timeouts › Reply To: About timeouts
August 3, 2023 at 6:21 am
#10801
Jeremy
Keymaster
You want to replace getKey("answerKey").disable().test.pressed("K", "S")
with getKey("answerKey").disable().test.pressed()
: this line is in a failure
command which already corresponds to a situation where the correct key wasn’t pressed so if, in that situation, test.pressed()
succeeds it means that the incorrect key was pressed, and if it fails it means that no key was pressed
Other than that I don’t see any problems with this piece of code
Jeremy