Browse Source

Create Action event when Knob is pressed but not moved.

tags/v1.0.0
Andrew Belt 5 years ago
parent
commit
421793d00d
2 changed files with 5 additions and 5 deletions
  1. +5
    -0
      src/app/Knob.cpp
  2. +0
    -5
      src/app/ParamWidget.cpp

+ 5
- 0
src/app/Knob.cpp View File

@@ -58,6 +58,11 @@ void Knob::onDragEnd(const event::DragEnd &e) {
h->newValue = newValue; h->newValue = newValue;
APP->history->push(h); APP->history->push(h);
} }
else {
// Call Action if knob was not changed
event::Action eAction;
onAction(eAction);
}
} }
} }




+ 0
- 5
src/app/ParamWidget.cpp View File

@@ -147,11 +147,6 @@ void ParamWidget::onButton(const event::Button &e) {
if (paramQuantity) { if (paramQuantity) {
APP->scene->rack->touchedParam = this; APP->scene->rack->touchedParam = this;
} }

// Call onAction
event::Action eAction;
onAction(eAction);

e.consume(this); e.consume(this);
} }




Loading…
Cancel
Save