ofxInteractiveSurface icon indicating copy to clipboard operation
ofxInteractiveSurface copied to clipboard

Core events on OS X (possibly also Linux)

Open eelke opened this issue 12 years ago • 3 comments

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 avatar Apr 20 '12 14:04 eelke

Eelke, have you switch to gitHub´s develop branch??

patriciogonzalezvivo avatar Apr 20 '12 14:04 patriciogonzalezvivo

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.

eelke avatar Apr 20 '12 15:04 eelke

Yes it is.

the "()" will come with next openFrameworks release.

Thanks

patriciogonzalezvivo avatar Apr 20 '12 21:04 patriciogonzalezvivo