From e6e2b6800e081c1a416638c4312b81415e190320 Mon Sep 17 00:00:00 2001 From: Ben Loftis Date: Mon, 8 May 2017 08:13:49 -0500 Subject: [PATCH] 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. --- libs/surfaces/mackie/mackie_control_protocol.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libs/surfaces/mackie/mackie_control_protocol.cc b/libs/surfaces/mackie/mackie_control_protocol.cc index a359982799..486adb7fa2 100644 --- a/libs/surfaces/mackie/mackie_control_protocol.cc +++ b/libs/surfaces/mackie/mackie_control_protocol.cc @@ -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 {