Event stacking
vegastech
Posts: 369
Is it possible to stack devchans with regard to button or channel events? I have several, identically-sized devchans created for the purposes of tracking which input/output buttons have been selected: devchan1 has buttons 1,3,5,7,9 in it, devchan2 has buttons 2,4,6,8,10 in it, and devchan3 has buttons 22,23,26,28,30 in it. What I WANT to do is to be able to stack the devchan button events for the purposes of tracking 1) which devchan was selected last, and 2) which item in that devchan was selected. However, I don't know if it can be done, since even though the devchans are named in numerical order, it seems that the button event looks for a unique devchan name, instead of being able to do this: button_event[devchan(i)]. Am I even on the right path for what I want to do? My gut tells me that I can't stack devchans like this.
0
Comments
The FOR loop is probably what you're looking for. Of course - this is just one way of doing what you're trying to achieve, but hopefully this will give you some ideas. (See attached code.)