summaryrefslogtreecommitdiff
path: root/le_new/src/ofApp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'le_new/src/ofApp.cpp')
-rw-r--r--le_new/src/ofApp.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/le_new/src/ofApp.cpp b/le_new/src/ofApp.cpp
index f12380e..d9488ec 100644
--- a/le_new/src/ofApp.cpp
+++ b/le_new/src/ofApp.cpp
@@ -74,7 +74,7 @@ void previewWindow::setup(){
setWindowShape(600,800);
setWindowPosition(260, 0);
setWindowTitle("PREVIEW");
- ofRegisterMouseEvents(this);
+ ofAddListener(onMouseMoved, this, &previewWindow::mousemoved);
}
void previewWindow::setParent(ofApp *p){
parent=p;
@@ -87,6 +87,11 @@ void previewWindow::draw(){
rb->draw(0,0,getWidth(),getHeight()); //why crash?
}
+void previewWindow::mousemoved(ofMouseEventArgs &arg){
+
+ printf("moved\n");
+
+}
//--------------------------------------------------------------
outputWindow::~outputWindow(){