Ofxtoggle mouse listener


I am simply trying to find the way to listen to the mouseMoved function of ofxToggle (or any ofxBase gui element) from my main app.

The “funny” thing is, if I try to call from ofApp::mouseMoved the toggle.mouseMoved, unfortunately it will not work because as soon as the mouse is moving on top of the gui the ofApp::mouseMoved is not called anymore…

Does anyone has any tip or solution?