diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2015-10-02 22:07:24 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2015-10-02 22:08:15 -0400 |
commit | c78426968ffbfd630c401f5acedb2b2b47789dbe (patch) | |
tree | e0c013406c5b318bc256e99eba257851ea119446 | |
parent | 40a4e2e6af1b445389f8f57c257e8f361724eff3 (diff) |
avoid handling pitchbend (fader) messages while SHIFT modifier is active.
See comment in code for more detail
-rw-r--r-- | libs/surfaces/mackie/surface.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libs/surfaces/mackie/surface.cc b/libs/surfaces/mackie/surface.cc index 562807ce79..4b5a0ef797 100644 --- a/libs/surfaces/mackie/surface.cc +++ b/libs/surfaces/mackie/surface.cc @@ -403,6 +403,14 @@ Surface::handle_midi_pitchbend_message (MIDI::Parser&, MIDI::pitchbend_t pb, uin turn_it_on (); } + if (_mcp.main_modifier_state() & MackieControlProtocol::MODIFIER_SHIFT) { + /* user is doing a reset to unity gain but device sends a PB + * message in the middle of the touch on/off messages. Ignore + * it. + */ + return; + } + Fader* fader = faders[fader_id]; if (fader) { |