mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-04-04 14:14:17 -04:00
Remove SetCustomMode from all controllers beginning with the letter N
This commit is contained in:
@@ -131,11 +131,6 @@ void RGBController_N5312A::UpdateSingleLED(int led)
|
||||
UpdateZoneLEDs(led);
|
||||
}
|
||||
|
||||
void RGBController_N5312A::SetCustomMode()
|
||||
{
|
||||
active_mode = 0;
|
||||
}
|
||||
|
||||
void RGBController_N5312A::DeviceUpdateMode()
|
||||
{
|
||||
const RGBColor& color = modes[active_mode].value == N5312A_OFF_MODE_VALUE ? 0 : colors[0];
|
||||
|
||||
@@ -20,11 +20,12 @@ public:
|
||||
|
||||
void SetupZones();
|
||||
void ResizeZone(int zone, int new_size);
|
||||
|
||||
void DeviceUpdateLEDs();
|
||||
void UpdateZoneLEDs(int zone);
|
||||
void UpdateSingleLED(int led);
|
||||
|
||||
void DeviceUpdateMode();
|
||||
void SetCustomMode();
|
||||
|
||||
private:
|
||||
N5312AController* controller;
|
||||
|
||||
@@ -164,11 +164,6 @@ uint8_t RGBController_NVIDIAIlluminationV1::getModeIndex(uint8_t mode_value)
|
||||
return 0;
|
||||
}
|
||||
|
||||
void RGBController_NVIDIAIlluminationV1::SetCustomMode()
|
||||
{
|
||||
active_mode = getModeIndex(NVIDIA_ILLUMINATION_DIRECT);
|
||||
}
|
||||
|
||||
void RGBController_NVIDIAIlluminationV1::DeviceUpdateMode()
|
||||
{
|
||||
DeviceUpdateLEDs();
|
||||
|
||||
@@ -22,20 +22,15 @@ class RGBController_NVIDIAIlluminationV1 : public RGBController
|
||||
RGBController_NVIDIAIlluminationV1(NVIDIAIlluminationV1Controller* nvidia_founders_ptr);
|
||||
~RGBController_NVIDIAIlluminationV1();
|
||||
|
||||
void UpdateSingleLED(int led);
|
||||
|
||||
void SetupZones();
|
||||
void ResizeZone(int zone, int new_size);
|
||||
|
||||
void DeviceUpdateLEDs();
|
||||
|
||||
void UpdateZoneLEDs(int);
|
||||
|
||||
void SetCustomMode();
|
||||
void UpdateZoneLEDs(int zone);
|
||||
void UpdateSingleLED(int led);
|
||||
|
||||
void DeviceUpdateMode();
|
||||
|
||||
void ResizeZone(int, int);
|
||||
|
||||
private:
|
||||
uint8_t getModeIndex(uint8_t mode_value);
|
||||
NVIDIAIlluminationV1Controller* controller;
|
||||
|
||||
@@ -273,11 +273,6 @@ void RGBController_NZXTHue2::UpdateSingleLED(int led)
|
||||
controller->SetChannelLEDs(zone_idx, zones[zone_idx].colors, zones[zone_idx].leds_count);
|
||||
}
|
||||
|
||||
void RGBController_NZXTHue2::SetCustomMode()
|
||||
{
|
||||
active_mode = 0;
|
||||
}
|
||||
|
||||
void RGBController_NZXTHue2::DeviceUpdateMode()
|
||||
{
|
||||
if(modes[active_mode].value == 0xFFFF)
|
||||
|
||||
@@ -17,14 +17,12 @@ public:
|
||||
~RGBController_NZXTHue2();
|
||||
|
||||
void SetupZones();
|
||||
|
||||
void ResizeZone(int zone, int new_size);
|
||||
|
||||
void DeviceUpdateLEDs();
|
||||
void UpdateZoneLEDs(int zone);
|
||||
void UpdateSingleLED(int led);
|
||||
|
||||
void SetCustomMode();
|
||||
void DeviceUpdateMode();
|
||||
|
||||
private:
|
||||
|
||||
@@ -269,11 +269,6 @@ void RGBController_HuePlus::UpdateSingleLED(int led)
|
||||
controller->SetChannelLEDs(zone_idx, zones[zone_idx].colors, zones[zone_idx].leds_count);
|
||||
}
|
||||
|
||||
void RGBController_HuePlus::SetCustomMode()
|
||||
{
|
||||
active_mode = 0;
|
||||
}
|
||||
|
||||
void RGBController_HuePlus::DeviceUpdateMode()
|
||||
{
|
||||
if(modes[active_mode].value == HUE_PLUS_MODE_FIXED)
|
||||
|
||||
@@ -18,14 +18,12 @@ public:
|
||||
~RGBController_HuePlus();
|
||||
|
||||
void SetupZones();
|
||||
|
||||
void ResizeZone(int zone, int new_size);
|
||||
|
||||
void DeviceUpdateLEDs();
|
||||
void UpdateZoneLEDs(int zone);
|
||||
void UpdateSingleLED(int led);
|
||||
|
||||
void SetCustomMode();
|
||||
void DeviceUpdateMode();
|
||||
|
||||
private:
|
||||
|
||||
@@ -355,11 +355,6 @@ void RGBController_NZXTKraken::UpdateSingleLED(int led)
|
||||
UpdateZoneLEDs(zone);
|
||||
}
|
||||
|
||||
void RGBController_NZXTKraken::SetCustomMode()
|
||||
{
|
||||
active_mode = 0;
|
||||
}
|
||||
|
||||
void RGBController_NZXTKraken::DeviceUpdateMode()
|
||||
{
|
||||
DeviceUpdateLEDs();
|
||||
|
||||
@@ -19,14 +19,12 @@ public:
|
||||
~RGBController_NZXTKraken();
|
||||
|
||||
void SetupZones();
|
||||
|
||||
void ResizeZone(int zone, int new_size);
|
||||
|
||||
void DeviceUpdateLEDs();
|
||||
void UpdateZoneLEDs(int zone);
|
||||
void UpdateSingleLED(int led);
|
||||
|
||||
void SetCustomMode();
|
||||
void DeviceUpdateMode();
|
||||
|
||||
private:
|
||||
|
||||
@@ -127,11 +127,6 @@ void RGBController_Nanoleaf::UpdateSingleLED(int /*led*/)
|
||||
DeviceUpdateLEDs();
|
||||
}
|
||||
|
||||
void RGBController_Nanoleaf::SetCustomMode()
|
||||
{
|
||||
active_mode = 0;
|
||||
}
|
||||
|
||||
void RGBController_Nanoleaf::DeviceUpdateMode()
|
||||
{
|
||||
/*---------------------------------------------------------*\
|
||||
|
||||
@@ -24,7 +24,6 @@ public:
|
||||
void UpdateZoneLEDs(int zone);
|
||||
void UpdateSingleLED(int led);
|
||||
|
||||
void SetCustomMode();
|
||||
void DeviceUpdateMode();
|
||||
|
||||
private:
|
||||
|
||||
@@ -106,11 +106,6 @@ void RGBController_NvidiaESA::UpdateSingleLED(int /*led*/)
|
||||
UpdateZoneLEDs(0);
|
||||
}
|
||||
|
||||
void RGBController_NvidiaESA::SetCustomMode()
|
||||
{
|
||||
active_mode = 0;
|
||||
}
|
||||
|
||||
void RGBController_NvidiaESA::DeviceUpdateMode()
|
||||
{
|
||||
DeviceUpdateLEDs();
|
||||
|
||||
@@ -20,11 +20,12 @@ public:
|
||||
|
||||
void SetupZones();
|
||||
void ResizeZone(int zone, int new_size);
|
||||
|
||||
void DeviceUpdateLEDs();
|
||||
void UpdateZoneLEDs(int zone);
|
||||
void UpdateSingleLED(int led);
|
||||
|
||||
void DeviceUpdateMode();
|
||||
void SetCustomMode();
|
||||
|
||||
private:
|
||||
NvidiaESAController* controller;
|
||||
|
||||
Reference in New Issue
Block a user