13
0

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

This commit is contained in:
Ben Loftis 2016-01-14 16:39:50 -06:00
parent ddb362fe17
commit 141352341c

View 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 ();
}
}