summaryrefslogtreecommitdiff
path: root/gui/src/ofApp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gui/src/ofApp.cpp')
-rw-r--r--gui/src/ofApp.cpp24
1 files changed, 18 insertions, 6 deletions
diff --git a/gui/src/ofApp.cpp b/gui/src/ofApp.cpp
index 570dfb3..08a77a8 100644
--- a/gui/src/ofApp.cpp
+++ b/gui/src/ofApp.cpp
@@ -336,29 +336,41 @@ void ofApp::mouseMoved(int x, int y ){
//--------------------------------------------------------------
void ofApp::mouseDragged(int x, int y, int button){
- sets[selected_set].mouseDragged(x,y,button);
+
+}
+
+void ofApp::guiMouseDragged(ofMouseEventArgs &args){
+ sets[selected_set].mouseDragged(args.x,args.y,args.button);
}
//--------------------------------------------------------------
void ofApp::mousePressed(int x, int y, int button){
+}
+
+void ofApp::guiMousePressed(ofMouseEventArgs &args){
if (commandPressed){
- if (y<200){
- sets[0].mousePressed(x,y,OF_MOUSE_BUTTON_4);
+ if (args.y<200){
+ sets[0].mousePressed(args.x,args.y,OF_MOUSE_BUTTON_4);
}
else {
- sets[1].mousePressed(x,y,OF_MOUSE_BUTTON_4);
+ sets[1].mousePressed(args.x,args.y,OF_MOUSE_BUTTON_4);
}
}
else {
- sets[selected_set].mousePressed(x,y,button);
+ sets[selected_set].mousePressed(args.x,args.y,args.button);
}
}
//--------------------------------------------------------------
void ofApp::mouseReleased(int x, int y, int button){
- sets[selected_set].mouseReleased(x,y,button);
+
+}
+
+void ofApp::guiMouseReleased(ofMouseEventArgs &args){
+ sets[selected_set].mouseReleased(args.x,args.y,args.button);
}
+
//--------------------------------------------------------------
void ofApp::mouseEntered(int x, int y){