diff options
author | Robin Gareus <robin@gareus.org> | 2020-04-07 00:36:59 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2020-04-07 00:37:30 +0200 |
commit | f24cabe9e9fcbdd2877b9d382935ef499fb599ba (patch) | |
tree | 05aa75f7cc153a966d3acfdf6963964feefc7246 | |
parent | 2991d74da53edc5a3b09d1cfdf7703212fda5d99 (diff) |
Fix rotary control knob mapping
This fixes an issue with Foldback strips pan controls being inverted.
-rw-r--r-- | libs/widgets/ardour_knob.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libs/widgets/ardour_knob.cc b/libs/widgets/ardour_knob.cc index 8a80814471..e69ed1fda0 100644 --- a/libs/widgets/ardour_knob.cc +++ b/libs/widgets/ardour_knob.cc @@ -301,14 +301,14 @@ ArdourKnob::on_scroll_event (GdkEventScroll* ev) boost::shared_ptr<PBD::Controllable> c = binding_proxy.get_controllable(); if (c) { - float val = c->get_interface(); + float val = c->get_interface (true); if ( ev->direction == GDK_SCROLL_UP ) val += scale; else val -= scale; - c->set_interface(val); + c->set_interface (val, true); } return true; @@ -347,7 +347,7 @@ ArdourKnob::on_motion_notify_event (GdkEventMotion *ev) _grabbed_x = ev->x; _grabbed_y = ev->y; - float val = c->get_interface(); + float val = c->get_interface (true); if (_flags & Detent) { const float px_deadzone = 42.f * ui_scale; @@ -378,7 +378,7 @@ ArdourKnob::on_motion_notify_event (GdkEventMotion *ev) } val += delta * scale; - c->set_interface(val); + c->set_interface (val, true); return true; } @@ -474,7 +474,7 @@ ArdourKnob::controllable_changed (bool force_update) boost::shared_ptr<PBD::Controllable> c = binding_proxy.get_controllable(); if (!c) return; - float val = c->get_interface(); + float val = c->get_interface (true); val = min( max(0.0f, val), 1.0f); // clamp if (val == _val && !force_update) { |