diff options
author | Ben Loftis <ben@harrisonconsoles.com> | 2017-05-08 08:13:49 -0500 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-05-12 15:43:52 +0200 |
commit | e6e2b6800e081c1a416638c4312b81415e190320 (patch) | |
tree | 66709af7d9f141dbd9cf0d5bf945a9e68b976a1c | |
parent | 47291389bcd3bc522d5d5515f2f7ea50d547b297 (diff) |
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.
-rw-r--r-- | libs/surfaces/mackie/mackie_control_protocol.cc | 4 |
1 files changed, 3 insertions, 1 deletions
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 { |