I'm not quite sure what you are doing with the clicked flag. Regardless, you need to move the initialization of the buttons outside of the while loop because you are creating a new button every frame. Also the get event methods have to be ran under the event loop.
I can give an example when I get to a desktop instead of this small phone. Compare the first code snippet in the tutorial of these issues with your code shown here.
I can give an example when I get to a desktop instead of this small phone. Compare the first code snippet in the tutorial of these issues with your code shown here.
Recommended Tutorials: