@thegrinch wrote:
Hi I am trying to set up a basic event listener as described in the example here: http://openframeworks.cc/documentation/events/
However when I directly paste the code into my example project it produces an error:
No matching function for call to 'ofAddListener'
I have of course modified the line to work with my base class in my blank project:
ofAddListener(ofEvents().mouseMoved, this, &ofApp::mouseMoved);
The function mouseMoved() is declared as a public void in ofApp.h and the ofAddListener call is in ofApp::setup()
What is going wrong here?
Posts: 3
Participants: 3