From 141352341cdd79e26fefe63b0568d5061ee45edb Mon Sep 17 00:00:00 2001 From: Ben Loftis Date: Thu, 14 Jan 2016 16:39:50 -0600 Subject: [PATCH] Generic MIDI: midi controller buttons should only trigger on the PUSH, not release. This might have to be reveisited later, but it looks right to me and it fixes operation on 2 different devices here --- libs/surfaces/generic_midi/midiinvokable.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/surfaces/generic_midi/midiinvokable.cc b/libs/surfaces/generic_midi/midiinvokable.cc index 9d679b1e8e..f0a5e61611 100644 --- a/libs/surfaces/generic_midi/midiinvokable.cc +++ b/libs/surfaces/generic_midi/midiinvokable.cc @@ -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 (); } }