Quantcast
Channel: Library Questions - Processing 2.x and 3.x Forum
Viewing all articles
Browse latest Browse all 2896

ControlP5 Icon Class - Switch mode does not call controlEvent function

$
0
0

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


Viewing all articles
Browse latest Browse all 2896

Trending Articles