ofxInteractiveSurface
ofxInteractiveSurface copied to clipboard
Core events on OS X (possibly also Linux)
For OS X, and likely also for Linux:
ofAddListener(ofEvents().mouseMoved, this, &ofxSurface::_mouseMoved);
ofAddListener(ofEvents().mousePressed, this, &ofxSurface::_mousePressed);
ofAddListener(ofEvents().mouseDragged, this, &ofxSurface::_mouseDragged);
ofAddListener(ofEvents().mouseReleased, this, &ofxSurface::_mouseReleased);
ofAddListener(ofEvents().keyPressed, this, &ofxSurface::_keyPressed);
should be
ofAddListener(ofEvents.mouseMoved, this, &ofxSurface::_mouseMoved);
ofAddListener(ofEvents.mousePressed, this, &ofxSurface::_mousePressed);
ofAddListener(ofEvents.mouseDragged, this, &ofxSurface::_mouseDragged);
ofAddListener(ofEvents.mouseReleased, this, &ofxSurface::_mouseReleased);
ofAddListener(ofEvents.keyPressed, this, &ofxSurface::_keyPressed);
Eelke, have you switch to gitHub´s develop branch??
No, I have only taken ofPolyline.h & ofPolyline.cpp from that branch, because I don't want to risk other parts of my app not working.
I have made this an issue because it also exists with for instance the ofxBox2d addon (https://github.com/vanderlin/ofxBox2d/issues/27), and therefor seems like a fair issue.
Yes it is.
the "()" will come with next openFrameworks release.
Thanks