projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4729138
)
MCP: Momentarily light buttons when they are used to trigger a defined action.
author
Ben Loftis
<ben@harrisonconsoles.com>
Mon, 8 May 2017 13:13:49 +0000
(08:13 -0500)
committer
Robin Gareus
<robin@gareus.org>
Fri, 12 May 2017 13:43:52 +0000
(15:43 +0200)
*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
patch
|
blob
|
history
diff --git
a/libs/surfaces/mackie/mackie_control_protocol.cc
b/libs/surfaces/mackie/mackie_control_protocol.cc
index a359982799b183b044e0359e6f27d913e2a9c50f..486adb7fa2841f088aed3f24e0f6f59d4ec30f88 100644
(file)
--- 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 {