mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-15 20:54:55 +00:00
fix: list available buttons on startup
This commit is contained in:
@@ -55,6 +55,8 @@ namespace PepperDash.Essentials.Core.Touchpanels
|
|||||||
InitializeButton(buttonKey, buttonConfig);
|
InitializeButton(buttonKey, buttonConfig);
|
||||||
InitializeButtonFeedback(buttonKey, buttonConfig);
|
InitializeButtonFeedback(buttonKey, buttonConfig);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ListButtons();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -318,6 +320,23 @@ namespace PepperDash.Essentials.Core.Touchpanels
|
|||||||
|
|
||||||
foreach (var eventType in button.EventTypes[type]) DeviceJsonApi.DoDeviceAction(eventType);
|
foreach (var eventType in button.EventTypes[type]) DeviceJsonApi.DoDeviceAction(eventType);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public void ListButtons()
|
||||||
|
{
|
||||||
|
var line = new string('-', 35);
|
||||||
|
|
||||||
|
Debug.Console(0, this, line);
|
||||||
|
|
||||||
|
Debug.Console(0, this, "MPC3 Controller {0} - Available Butons", Key);
|
||||||
|
|
||||||
|
foreach (var button in _buttons)
|
||||||
|
{
|
||||||
|
Debug.Console(0, this, "Key: {0}", button.Key);
|
||||||
|
}
|
||||||
|
|
||||||
|
Debug.Console(0, this, line);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
Reference in New Issue
Block a user