diff options
author | Robin Gareus <robin@gareus.org> | 2017-04-16 17:18:05 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-04-16 17:18:23 +0200 |
commit | 67f2e4b866ddd3953b85eaadf545647e67730c39 (patch) | |
tree | 63c27af8bb9bf6e5a52d8871f6fc2099713b3ede /libs/surfaces/faderport8/actions.cc | |
parent | f18f7dca436ff08f373040905b8d847b36847c6a (diff) |
FP8: add metronome level reset
Diffstat (limited to 'libs/surfaces/faderport8/actions.cc')
-rw-r--r-- | libs/surfaces/faderport8/actions.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libs/surfaces/faderport8/actions.cc b/libs/surfaces/faderport8/actions.cc index e6ad7fd062..0c1112288b 100644 --- a/libs/surfaces/faderport8/actions.cc +++ b/libs/surfaces/faderport8/actions.cc @@ -318,6 +318,12 @@ FaderPort8::button_prev_next (bool next) void FaderPort8::button_encoder () { + /* special-case metronome level */ + if (_ctrls.button (FP8Controls::BtnClick).is_pressed ()) { + Config->set_click_gain (1.0); + _ctrls.button (FP8Controls::BtnClick).ignore_release(); + return; + } switch (_ctrls.nav_mode()) { case NavZoom: ZoomToSession (); // XXX undo zoom |