mackie: more debug tracing for remapped buttons
This commit is contained in:
parent
8f13d33efe
commit
9dc2ef28be
@ -1598,12 +1598,16 @@ MackieControlProtocol::handle_button_event (Surface& surface, Button& button, Bu
|
||||
|
||||
/* lookup using the device-INDEPENDENT button ID */
|
||||
|
||||
DEBUG_TRACE (DEBUG::MackieControl, string_compose ("now looking up button ID %1", button_id));
|
||||
|
||||
ButtonMap::iterator b = button_map.find (button_id);
|
||||
|
||||
if (b != button_map.end()) {
|
||||
|
||||
ButtonHandlers& bh (b->second);
|
||||
|
||||
DEBUG_TRACE (DEBUG::MackieControl, string_compose ("button found in map, now invoking %1\n", (bs == press ? "press" : "release")));
|
||||
|
||||
switch (bs) {
|
||||
case press:
|
||||
surface.write (button.set_state ((this->*(bh.press)) (button)));
|
||||
|
@ -424,6 +424,8 @@ MackieControlProtocol::timecode_beats_release (Button &)
|
||||
LedState
|
||||
MackieControlProtocol::marker_press (Button &)
|
||||
{
|
||||
DEBUG_TRACE (DEBUG::MackieControl, "marker press\n");
|
||||
|
||||
if (main_modifier_state() & MODIFIER_SHIFT) {
|
||||
access_action ("Common/remove-location-from-playhead");
|
||||
return off;
|
||||
@ -437,6 +439,8 @@ MackieControlProtocol::marker_press (Button &)
|
||||
LedState
|
||||
MackieControlProtocol::marker_release (Button &)
|
||||
{
|
||||
DEBUG_TRACE (DEBUG::MackieControl, "marker release\n");
|
||||
|
||||
_modifier_state &= ~MODIFIER_MARKER;
|
||||
|
||||
if (main_modifier_state() & MODIFIER_SHIFT)
|
||||
|
Loading…
Reference in New Issue
Block a user