Device visualizer - Added LedClicked event

Device properties - Added the ability to select LEDs by clicking on them in the preview
This commit is contained in:
Robert committed 2021-03-26 00:18:10 +01:00
1 parent 6005535000
commit 5611ad420a
6 files changed
+90 -17

No files matched your search

@@ -25,10 +25,10 @@ namespace Artemis.Core
public static SKRect ToSKRect(this Rectangle rectangle)
{
return SKRect.Create(
(float) rectangle.Location.X,
(float) rectangle.Location.Y,
(float) rectangle.Size.Width,
(float) rectangle.Size.Height
rectangle.Location.X,
rectangle.Location.Y,
rectangle.Size.Width,
rectangle.Size.Height
);
}
}
@@ -337,6 +337,7 @@ namespace Artemis.Core
Layout = layout;
Layout.ApplyDevice(this);
CalculateRenderProperties();
OnDeviceUpdated();
}