So I'm working with controlP5 and the Icon class which works great except when I turn on "setSwitch(true)". The moment I add this line of code it does not reach the controlEvent function anymore. I've solved it before by checking isPressed on the specific controller and then setting things with iconObject.isOn(), but I've got quite a few more buttons now so I'd love to be able to use the controlEvent function.
Has anyone encountered or fixed this before?
Thanks