mirror of
https://github.com/DarthAffe/RGB.NET.git
synced 2026-11-10 20:46:24 +00:00
Updated corsair SDK
This adds support for custom devices (lightning node and commander). And introduced 'fan' as device type. fixes #23
This commit is contained in:
1 parent
4b2aba8447
commit
c47afc4704
26 files changed
+810
-64
No files matched your search
@@ -0,0 +1,19 @@
|
||||
using RGB.NET.Core;
|
||||
using RGB.NET.Devices.Corsair.Native;
|
||||
|
||||
namespace RGB.NET.Devices.Corsair
|
||||
{
|
||||
internal static class NativeExtensions
|
||||
{
|
||||
internal static Rectangle ToRectangle(this _CorsairLedPosition position)
|
||||
{
|
||||
//HACK DarthAffe 08.07.2018: It seems like corsair introduced a bug here - it's always 0.
|
||||
double width = position.width < 0.5 ? 10 : position.width;
|
||||
double height = position.height < 0.5 ? 10 : position.height;
|
||||
double posX = position.left;
|
||||
double posY = position.top;
|
||||
|
||||
return new Rectangle(posX, posY, width, height);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user