13
0

MCP: Momentarily light buttons when they are used to trigger a defined action.

*This is mainly for F-keys
*If a button is not assigned an action, it will not light,
   hopefully indicating to the user that it is unmapped.
This commit is contained in:
Ben Loftis 2017-05-08 08:13:49 -05:00 committed by Robin Gareus
parent 47291389bc
commit e6e2b6800e

View File

@ -1549,10 +1549,12 @@ MackieControlProtocol::handle_button_event (Surface& surface, Button& button, Bu
occur either.
*/
if (bs == press) {
update_led (surface, button, on);
DEBUG_TRACE (DEBUG::MackieControl, string_compose ("executing action %1\n", action));
access_action (action);
} else {
update_led (surface, button, off);
}
return;
} else {