Initial support of Latch for some ctrl-surfaces
authorRobin Gareus <robin@gareus.org>
Tue, 25 Jul 2017 14:30:00 +0000 (16:30 +0200)
committerPaul Davis <paul@linuxaudiosystems.com>
Mon, 18 Sep 2017 15:40:52 +0000 (11:40 -0400)
libs/surfaces/faderport8/actions.cc
libs/surfaces/faderport8/callbacks.cc
libs/surfaces/faderport8/fp8_controls.cc

index 6389e4a3ac118fbf1211b97d484026fcb2abad00..d17059d92d5d0536b253eaab07cc431325a31af1 100644 (file)
@@ -90,6 +90,7 @@ FaderPort8::setup_actions ()
        BindFunction (BtnATouch, released, button_automation, ARDOUR::Touch);
        BindFunction (BtnARead, released, button_automation, ARDOUR::Play);
        BindFunction (BtnAWrite, released, button_automation, ARDOUR::Write);
+       BindFunction (BtnALatch, released, button_automation, ARDOUR::Latch);
 
        _ctrls.button (FP8Controls::BtnEncoder).pressed.connect_same_thread (button_connections, boost::bind (&FaderPort8::button_encoder, this));
        _ctrls.button (FP8Controls::BtnParam).pressed.connect_same_thread (button_connections, boost::bind (&FaderPort8::button_parameter, this));
index f9a7d4976a96d6665bdedfa6625e76b5c2daff90..fd5d1407cbae09cd61203fac138dc98843e6fd69 100644 (file)
@@ -100,6 +100,7 @@ FaderPort8::notify_automation_mode_changed ()
        _ctrls.button (FP8Controls::BtnATouch).set_active (as == Touch);
        _ctrls.button (FP8Controls::BtnARead).set_active (as == Play);
        _ctrls.button (FP8Controls::BtnAWrite).set_active (as == Write);
+       _ctrls.button (FP8Controls::BtnALatch).set_active (as == Latch);
 }
 
 void
index 0920cc535b9d3b0296109bc6f55a08c5b705c5e4..7ce1dfe5d465d4b27c05b5bc2f28a1c424ecf758 100644 (file)
@@ -233,13 +233,12 @@ FP8Controls::initialize ()
        button (BtnARead).set_color (0x00ff00ff);
        button (BtnAWrite).set_color (0xff0000ff);
        button (BtnATouch).set_color (0xff8800ff);
+       button (BtnALatch).set_color (0xffff00ff);
 
        button (BtnUser1).set_color (0x0000ffff);
        button (BtnUser2).set_color (0x0000ffff);
        button (BtnUser3).set_color (0x0000ffff);
 
-       button (BtnALatch).set_color (0x0000ffff);
-
        button (BtnBypass).set_color (0x888888ff);
        button (BtnBypassAll).set_color (0xffffffff);