Two Mindstorms touch sensors: how to determine which sensor was pressed?
I found an answer. I read in a book that I can't fork in a loop. But I can do up to 4 separate threads. So I did 3 threads:


Running/changing motors speed based on a variable "i" which is changed in other threads.
Waiting for a touch sensor A being bumped and increasing var "i".
Waiting for a touch sensor B being bumped and decreasing var "i".