faderport: add footswitch button
authorPaul Davis <paul@linuxaudiosystems.com>
Mon, 25 Jan 2016 19:32:09 +0000 (14:32 -0500)
committerPaul Davis <paul@linuxaudiosystems.com>
Mon, 25 Jan 2016 20:11:26 +0000 (15:11 -0500)
libs/surfaces/faderport/faderport.cc
libs/surfaces/faderport/faderport.h

index a1ca393d7309cf8cbfc4b877f904ef04f7cf41f9..45dc9b82fa5b223f005ccdb3ebda0e2780bab5c5 100644 (file)
@@ -136,6 +136,7 @@ FaderPort::FaderPort (Session& s)
        buttons.insert (std::make_pair (Stop, Button (*this, _("Stop"), Stop, 2)));
        buttons.insert (std::make_pair (Play, Button (*this, _("Play"), Play, 1)));
        buttons.insert (std::make_pair (RecEnable, Button (*this, _("RecEnable"), RecEnable, 0)));
+       buttons.insert (std::make_pair (Footswitch, Button (*this, _("Footswitch"), Footswitch, -1)));
        buttons.insert (std::make_pair (FaderTouch, Button (*this, _("Fader (touch)"), FaderTouch, -1)));
 
        get_button (Shift).set_flash (true);
index d0a4d915f08c48bb2f2014318aabc5c5b42cf772..86daa8a2f765048ca3918c1e435bd90d1e1da157 100644 (file)
@@ -146,6 +146,7 @@ class FaderPort : public ARDOUR::ControlProtocol, public AbstractUI<FaderPortReq
                Stop = 5,
                Play = 6,
                RecEnable = 7,
+               Footswitch = 126,
                FaderTouch = 127,
        };