06-10-2022 03:04 PM
@billko wrote:
Well, you cannot stick them outside the loop, so it's not ANYwhere. 😉 Besides, a better experience awaits the user if you stick it inside its respective event case because then it doesn't have to wait until the next loop iteration to "unpress" again.
I think this thread is going off the rails, choo chooo : ) Just so there is a full perspective and playing the devil's advocate, this works just fine and has nice deterministic behavior (but is the behavior you want) ...
06-10-2022 04:35 PM - edited 06-10-2022 04:36 PM
Except that this code does not answer most of the original questions:
Here's how a very simple solution would look like.
(I tend not to recommend event structures to newbies. Too many landmines 😄 )
06-10-2022 05:08 PM
@Jay14159265 wrote:
@billko wrote:
Well, you cannot stick them outside the loop, so it's not ANYwhere. 😉 Besides, a better experience awaits the user if you stick it inside its respective event case because then it doesn't have to wait until the next loop iteration to "unpress" again.
I think this thread is going off the rails, choo chooo : ) Just so there is a full perspective and playing the devil's advocate, this works just fine and has nice deterministic behavior (but is the behavior you want) ...
All aboard the Crazy Train! On a serious note, though, the button doesn't reset until after you exit the loop.
06-11-2022 04:26 AM
@billko wrote:
@Jay14159265 wrote:
@billko wrote:
Well, you cannot stick them outside the loop, so it's not ANYwhere. 😉 Besides, a better experience awaits the user if you stick it inside its respective event case because then it doesn't have to wait until the next loop iteration to "unpress" again.
I think this thread is going off the rails, choo chooo : ) Just so there is a full perspective and playing the devil's advocate, this works just fine and has nice deterministic behavior (but is the behavior you want) ...
All aboard the Crazy Train! On a serious note, though, the button doesn't reset until after you exit the loop.
It won’t even I press then. The button only unpresses when it is read. It will have already been read so it won’t unpress.