Hi everyone.
I’m sharing here this problem just to know if someone is having it and how to solve it.
If the action buttonSingleClicked() is performed on the main Loop() but you dont have any action for that click in the main Loop(), the blink “save” that action and perform it later if he find that action on another loop.
Example:
void loop() {
if (buttonDoubleClicked()) {
secondloop();
}
}
void secondloop() {
if (buttonSingleClicked()){
setColor(RED)
}
}
If I CLICK on the first loop, that action is saved, and if then I do a DOUBLECLICK, the first click is performed in the second loop (not always, but sometimes at random points, that allow the game to do random actions).
I managed to solve it adding an empty action to the main loop:
if (buttonSingleClicked()) { }
Am I doing something wrong?
Thank you for the help!!