Implement remaining XBE-24 and stirrer keys
Test / Run tests (push) Successful in 35s

This commit is contained in:
lorenz.stechauner committed 2026-11-06 09:49:23 +01:00
1 parent ed4bbd09bd
commit 50f6174af1
14 files changed
+438 -78

No files matched your search

+4
View File
@@ -3,6 +3,10 @@ using System.Drawing;
namespace PamhagenSysCtrl.Helpers {
public static class Extensions {
public static void SetBacklight(this Xbe24Keyboard k, PamhagenPlant.ShortcutKey key, (Color Color, bool Flashing) state) {
k.SetBacklight(key, state.Color, state.Flashing);
}
public static void SetBacklight(this Xbe24Keyboard k, PamhagenPlant.ShortcutKey key, Color color, bool flashing = false) {
if (App.Config.MapKey(key) is int n)
k.SetBacklight(n, color, flashing);