mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-05-19 03:56:26 -04:00
Initial commit for the Corsair K60 RGB PRO to resolve #1240
+ Adding K60 and K60 Low Profile PID to CorsairPeripheralV2Devices.h + Adding device layout + Registering detector + Adding pointer layout map and changing calls to accomodate.
This commit is contained in:
@@ -21,7 +21,7 @@ CorsairPeripheralV2SWController::~CorsairPeripheralV2SWController()
|
||||
|
||||
}
|
||||
|
||||
void CorsairPeripheralV2SWController::SetLedsDirect(std::vector<RGBColor>colors)
|
||||
void CorsairPeripheralV2SWController::SetLedsDirect(std::vector<RGBColor *>colors)
|
||||
{
|
||||
uint16_t count = colors.size();
|
||||
uint16_t green = count;
|
||||
@@ -33,7 +33,7 @@ void CorsairPeripheralV2SWController::SetLedsDirect(std::vector<RGBColor>colors)
|
||||
|
||||
for(std::size_t i = 0; i < count; i++)
|
||||
{
|
||||
RGBColor color = colors[i];
|
||||
RGBColor color = *colors[i];
|
||||
|
||||
buffer[i] = RGBGetRValue(color);
|
||||
buffer[green + i] = RGBGetGValue(color);
|
||||
|
||||
Reference in New Issue
Block a user