Generic MIDI: midi controller buttons should only trigger on the PUSH, not release...
authorBen Loftis <ben@harrisonconsoles.com>
Thu, 14 Jan 2016 22:39:50 +0000 (16:39 -0600)
committerBen Loftis <ben@harrisonconsoles.com>
Thu, 14 Jan 2016 22:39:50 +0000 (16:39 -0600)
libs/surfaces/generic_midi/midiinvokable.cc

index 9d679b1e8e8882cf35819f9fa2cea7e4b570d0aa..f0a5e6161104ee8408bde214df83814c7c6e0b27 100644 (file)
@@ -75,7 +75,7 @@ MIDIInvokable::midi_sense_note (Parser &, EventTwoBytes *msg, bool /* is_on */)
 void
 MIDIInvokable::midi_sense_controller (Parser &, EventTwoBytes *msg)
 {
-       if (control_additional == msg->controller_number) {
+       if (control_additional == msg->controller_number && msg->value > 0x40 ) {
                execute ();
        }
 }