Hey there, I recall from the tutorial that pd uses depth-first when triggering signals and thats what [trigger] is for. Well I'm trying to read keyboard input and I'm piecing together a message that gets passed to [route] but I'm having all kinds of trouble.
When I press a key using this patch, the keydown parameter is late. That is the first message is "shift 0" and the second message is "shift 1".
The next thing I tried is to use trigger on the right (cold) input to pack. However, now I'm receiving duplicate messages. I get "shift 0" "shift 1" when pressing and then "shift 1", "shift 0" when I let go.
A pragmatic solution that seems to work is simply reordering things and using the message box to select the other elements.
This works as expected. The result is "shift 1", "shift 0".
But I'm still a bit confused. I'd imagine that in a more complicated program, this sort of refactoring might not be possible. Or it might be hard to find or debug. So I'm wondering, is there a way to get this all to work without switching the order of the arguments going into pack?
Thanks!