This website works better with JavaScript.
Home
Help
Sign In
VCVRack
/
Rack
mirror of
https://github.com/VCVRack/Rack.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
38
Wiki
Activity
Browse Source
Create Action event when Knob is pressed but not moved.
tags/v1.0.0
Andrew Belt
5 years ago
parent
7624c46f19
commit
421793d00d
2 changed files
with
5 additions
and
5 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+5
-0
src/app/Knob.cpp
+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;
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) {
APP->scene->rack->touchedParam = this;
}
// Call onAction
event::Action eAction;
onAction(eAction);
e.consume(this);
}
Write
Preview
Loading…
Cancel
Save