diff options
| author | Tim Redfern <tim@getdrop.com> | 2018-08-29 00:44:50 +0100 |
|---|---|---|
| committer | Tim Redfern <tim@getdrop.com> | 2018-08-29 00:44:50 +0100 |
| commit | 25873b7bd177c6bb4ad4b00a51eb8fa213468126 (patch) | |
| tree | 45f8e4f284b8ef3a886d83a58418d2c8d5f7c563 /gui/src/ofApp.cpp | |
| parent | c0e32ef7278e108614186ff51f8e4260313a0e9e (diff) | |
zoom multiplier
Diffstat (limited to 'gui/src/ofApp.cpp')
| -rw-r--r-- | gui/src/ofApp.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gui/src/ofApp.cpp b/gui/src/ofApp.cpp index 08a77a8..706ff14 100644 --- a/gui/src/ofApp.cpp +++ b/gui/src/ofApp.cpp @@ -264,7 +264,9 @@ void ofApp::newMidiMessage(ofxMidiMessage& msg) { //sets[i].zoomMultiplier=1.0f+(((float)msg.value-64)/64.0f); doesn't work }; - printf("Val %i, zoomMultiplier: %f \n",msg.value,sets[0].fitFactor); + sets[selected_set].zoomMultiplier=1.0f+(((float)msg.value-64)/64.0f); + + printf("Val %i, zoomMultiplier: %f \n",sets[selected_set].zoomMultiplier); } if (msg.channel==1&&msg.control==65+offet){ //top button 1 @@ -341,6 +343,7 @@ void ofApp::mouseDragged(int x, int y, int button){ void ofApp::guiMouseDragged(ofMouseEventArgs &args){ sets[selected_set].mouseDragged(args.x,args.y,args.button); + //ofLog()<<">>DRAGGED "<<args.x<<" "<<args.y; } //-------------------------------------------------------------- @@ -348,6 +351,7 @@ void ofApp::mousePressed(int x, int y, int button){ } void ofApp::guiMousePressed(ofMouseEventArgs &args){ + //ofLog()<<">>PRESSED "<<args.x<<" "<<args.y; if (commandPressed){ if (args.y<200){ sets[0].mousePressed(args.x,args.y,OF_MOUSE_BUTTON_4); |
