Skip to content

Commit

Permalink
ofParameter: add newListener to void parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
arturoc committed Sep 13, 2016
1 parent 94d23f8 commit fde06f6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions libs/openFrameworks/types/ofParameter.h
Original file line number Diff line number Diff line change
Expand Up @@ -945,6 +945,11 @@ class ofParameter<void>: public ofAbstractParameter{
ofRemoveListener(obj->changedE,listener,method,prio);
}

template<typename... Args>
ofEventListener newListener(Args...args) {
return obj->changedE.newListener(args...);
}

void trigger();

void enableEvents();
Expand Down

0 comments on commit fde06f6

Please sign in to comment.