diff --git a/src/Gui/Widgets/ScaleWidget.cpp b/src/Gui/Widgets/ScaleWidget.cpp index ecb5853..2c1367e 100644 --- a/src/Gui/Widgets/ScaleWidget.cpp +++ b/src/Gui/Widgets/ScaleWidget.cpp @@ -139,9 +139,6 @@ void ScaleWidget::onMouseDragged(ofMouseEventArgs & args){ GuiWidgetEvent e; e.args = args; - - // Make sure that the args type is Dragged - e.args.type = e.args.Dragged; ofNotifyEvent(guiWidgetEvent, e, this); } } diff --git a/src/ofxPiMapper.cpp b/src/ofxPiMapper.cpp index aa2a3c7..1e994a0 100644 --- a/src/ofxPiMapper.cpp +++ b/src/ofxPiMapper.cpp @@ -31,6 +31,7 @@ void ofxPiMapper::mousePressed(int x, int y, int button){ args.x = x; args.y = y; args.button = button; + args.type = ofMouseEventArgs::Pressed; _application.onMousePressed(args); } @@ -39,6 +40,7 @@ void ofxPiMapper::mouseReleased(int x, int y, int button){ args.x = x; args.y = y; args.button = button; + args.type = ofMouseEventArgs::Released; _application.onMouseReleased(args); } @@ -47,6 +49,7 @@ void ofxPiMapper::mouseDragged(int x, int y, int button){ args.x = x; args.y = y; args.button = button; + args.type = ofMouseEventArgs::Dragged; _application.onMouseDragged(args); }