Quantcast
Viewing all articles
Browse latest Browse all 40524

Vector of ofxMSAInteractiveObject

I had some progress...
The problem was that when I declare an object of class derived from ofxMSAInteractiveObject, his constructor is called, that calls the method enableAppEvents(), which in turn adds listeners ofEvents().setup, update and draw.
If I remove enableAppEvents() from constructor of ofxMSAInteractiveObject, and only then I do buttonVector.back().enableAppEvents(), the events works.

BUT only works for the last two vector elements D:
It does not make any sense

(repository updated)


Viewing all articles
Browse latest Browse all 40524

Trending Articles