ControlP5 catch interface pressed
in
Contributed Library Questions
•
1 year ago
Hello, I'm trying to catch every click on my interface so that something is only drawn in my draw event when the mouseclick was not on the interface. I have this at this moment:
- class MyControlListener implements ControlListener {
void controlEvent(ControlEvent theEvent) {
UI = true;
}
}
But this seems to not change the variable at all. With listener I was able to catch mouseclicks on groups but not on buttons,sliders,radiobuttons and dropboxes. I wonder if anyone knows the answer.
Thanks in advance.
1