mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-13 20:47:04 +00:00
fix: list available buttons on startup
This commit is contained in:
parent
552a315ac0
commit
4da2f25c3d
1 changed files with 19 additions and 0 deletions
|
|
@ -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>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue