ofTheo/ofxControlPanel

enableAutoEvents or addEventListeners

Opened this issue · 0 comments

Automatically add event listeners for draw, update, mouse and key events. For example:

void addEventListeners() {
 ofAddListener(ofEvents.update, this, &ofxAutoControlPanel::update);
 ...
}
void update(ofEventArgs& event) {
 ofxControlPanel::update();
}
...