ControlP5 all buttons called at program start

I've noticed that all the buttons/controls are called once when the program is started. For example, in "ControlP5button.pde", when you launch it, you can see every button is pressed

a button event from colorA: 0 colorA a button event from colorB: 100 colorB a button event from colorC: 0 colorC a button event from buttonB: 128 play playAgain

This could be a problem if a button's action were System.exit(0); for example. Does anyone know a solution to prevent this?

Sign In or Register to comment.