Closed GoogleCodeExporter closed 9 years ago
I don't know if this is the intended mechanism, but the event listener's
function is called not only when the button is pressed, but also when
setValue() is called.
One workaround is to temporary disable the event broadcast when calling the
setValue() function:
gui.getController("PressMe").setBroadcast(false);
gui.getController("PressMe").setValue(0);
gui.getController("PressMe").setBroadcast(true);
Original comment by iwan.san...@gmail.com
on 15 Nov 2012 at 2:32
[deleted comment]
Hi, this is actually a feature rather than a bug. you can disable the auto
initialization of controllers when created by using
controP5.setAutoInitialization(false);
Original comment by soj...@gmail.com
on 19 Nov 2012 at 3:30
Original issue reported on code.google.com by
mo...@gmx.de
on 10 Nov 2012 at 5:55