Remove unnecessary implementations of SetCustomMode
This commit is contained in:
parent
43b97bca75
commit
6a472437bb
48 changed files with 33 additions and 231 deletions
|
|
@ -58,7 +58,7 @@ void RGBController_AMBX::SetupZones()
|
|||
side_lights_zone.leds_count = 2;
|
||||
side_lights_zone.matrix_map = NULL;
|
||||
zones.push_back(side_lights_zone);
|
||||
|
||||
|
||||
zone wallwasher_zone;
|
||||
wallwasher_zone.name = "Wallwasher";
|
||||
wallwasher_zone.type = ZONE_TYPE_LINEAR;
|
||||
|
|
@ -108,16 +108,16 @@ void RGBController_AMBX::DeviceUpdateLEDs()
|
|||
{
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
unsigned int led_values[5];
|
||||
RGBColor led_colors[5];
|
||||
|
||||
|
||||
for(unsigned int led_idx = 0; led_idx < leds.size(); led_idx++)
|
||||
{
|
||||
led_values[led_idx] = leds[led_idx].value;
|
||||
led_colors[led_idx] = colors[led_idx];
|
||||
}
|
||||
|
||||
|
||||
controller->SetLEDColors(led_values, led_colors, static_cast<unsigned int>(leds.size()));
|
||||
}
|
||||
|
||||
|
|
@ -127,10 +127,10 @@ void RGBController_AMBX::UpdateZoneLEDs(int zone)
|
|||
{
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
unsigned int start_idx = 0;
|
||||
unsigned int zone_size = 0;
|
||||
|
||||
|
||||
// Calculate start index and size
|
||||
for(unsigned int z_idx = 0; z_idx < zones.size(); z_idx++)
|
||||
{
|
||||
|
|
@ -139,20 +139,20 @@ void RGBController_AMBX::UpdateZoneLEDs(int zone)
|
|||
zone_size = zones[z_idx].leds_count;
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
start_idx += zones[z_idx].leds_count;
|
||||
}
|
||||
|
||||
|
||||
unsigned int led_values[5];
|
||||
RGBColor led_colors[5];
|
||||
|
||||
|
||||
for(unsigned int led_idx = 0; led_idx < zone_size; led_idx++)
|
||||
{
|
||||
unsigned int current_idx = start_idx + led_idx;
|
||||
led_values[led_idx] = leds[current_idx].value;
|
||||
led_colors[led_idx] = colors[current_idx];
|
||||
}
|
||||
|
||||
|
||||
controller->SetLEDColors(led_values, led_colors, zone_size);
|
||||
}
|
||||
|
||||
|
|
@ -162,7 +162,7 @@ void RGBController_AMBX::UpdateSingleLED(int led)
|
|||
{
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
unsigned int led_value = leds[led].value;
|
||||
RGBColor color = colors[led];
|
||||
controller->SetLEDColor(led_value, color);
|
||||
|
|
@ -174,11 +174,6 @@ void RGBController_AMBX::DeviceUpdateMode()
|
|||
{
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
DeviceUpdateLEDs();
|
||||
}
|
||||
|
||||
void RGBController_AMBX::SetCustomMode()
|
||||
{
|
||||
active_mode = 0;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,13 +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:
|
||||
AMBXController* controller;
|
||||
|
|
|
|||
|
|
@ -390,11 +390,6 @@ void RGBController_CherryKeyboard::UpdateSingleLED(int /*led*/)
|
|||
DeviceUpdateLEDs();
|
||||
}
|
||||
|
||||
void RGBController_CherryKeyboard::SetCustomMode()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void RGBController_CherryKeyboard::DeviceUpdateMode()
|
||||
{
|
||||
unsigned char red = 0x00;
|
||||
|
|
|
|||
|
|
@ -28,7 +28,6 @@ public:
|
|||
void UpdateZoneLEDs(int zone);
|
||||
void UpdateSingleLED(int led);
|
||||
|
||||
void SetCustomMode();
|
||||
void DeviceUpdateMode();
|
||||
|
||||
private:
|
||||
|
|
|
|||
|
|
@ -400,18 +400,6 @@ void RGBController_CMARGBController::UpdateSingleLED(int led)
|
|||
UpdateZoneLEDs(GetLED_Zone(led));
|
||||
}
|
||||
|
||||
void RGBController_CMARGBController::SetCustomMode()
|
||||
{
|
||||
for(int mode_idx = 0; mode_idx < (int)modes.size() ; mode_idx++)
|
||||
{
|
||||
if (modes[mode_idx].value == CM_ARGB_MODE_DIRECT)
|
||||
{
|
||||
active_mode = mode_idx;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void RGBController_CMARGBController::DeviceUpdateMode()
|
||||
{
|
||||
bool random_colours = (modes[active_mode].color_mode == MODE_COLORS_RANDOM);
|
||||
|
|
|
|||
|
|
@ -31,7 +31,6 @@ public:
|
|||
void UpdateZoneLEDs(int zone);
|
||||
void UpdateSingleLED(int led);
|
||||
|
||||
void SetCustomMode();
|
||||
void DeviceUpdateMode();
|
||||
|
||||
private:
|
||||
|
|
|
|||
|
|
@ -309,11 +309,6 @@ void RGBController_CMARGBGen2A1Controller::UpdateSingleLED(int /*led*/)
|
|||
DeviceUpdateLEDs();
|
||||
}
|
||||
|
||||
void RGBController_CMARGBGen2A1Controller::SetCustomMode()
|
||||
{
|
||||
active_mode = 0;
|
||||
}
|
||||
|
||||
void RGBController_CMARGBGen2A1Controller::DeviceUpdateMode()
|
||||
{
|
||||
const mode& active = modes[active_mode];
|
||||
|
|
|
|||
|
|
@ -28,7 +28,6 @@ public:
|
|||
void UpdateZoneLEDs(int zone);
|
||||
void UpdateSegmentLEDs(int zone, int subchannel);
|
||||
void UpdateSingleLED(int led);
|
||||
void SetCustomMode();
|
||||
void DeviceUpdateMode();
|
||||
void DeviceSaveMode();
|
||||
|
||||
|
|
|
|||
|
|
@ -184,18 +184,6 @@ void RGBController_CMMM711Controller::UpdateSingleLED(int /*led*/)
|
|||
DeviceUpdateLEDs();
|
||||
}
|
||||
|
||||
void RGBController_CMMM711Controller::SetCustomMode()
|
||||
{
|
||||
for(int mode_index = 0; mode_index < (int)modes.size(); mode_index++)
|
||||
{
|
||||
if(modes[mode_index].value == CM_MM711_MODE_CUSTOM)
|
||||
{
|
||||
active_mode = mode_index;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void RGBController_CMMM711Controller::DeviceUpdateMode()
|
||||
{
|
||||
RGBColor colour = 0;
|
||||
|
|
|
|||
|
|
@ -32,7 +32,6 @@ public:
|
|||
void UpdateZoneLEDs(int zone);
|
||||
void UpdateSingleLED(int led);
|
||||
|
||||
void SetCustomMode();
|
||||
void DeviceUpdateMode();
|
||||
void DeviceSaveMode();
|
||||
private:
|
||||
|
|
|
|||
|
|
@ -249,18 +249,6 @@ void RGBController_CMMMController::UpdateSingleLED(int /*led*/)
|
|||
DeviceUpdateLEDs();
|
||||
}
|
||||
|
||||
void RGBController_CMMMController::SetCustomMode()
|
||||
{
|
||||
for(int mode_index = 0; mode_index < (int)modes.size(); mode_index++)
|
||||
{
|
||||
if(modes[mode_index].value == CM_MM_MODE_CUSTOM)
|
||||
{
|
||||
active_mode = mode_index;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void RGBController_CMMMController::DeviceUpdateMode()
|
||||
{
|
||||
RGBColor mode_one = 0;
|
||||
|
|
|
|||
|
|
@ -33,9 +33,9 @@ public:
|
|||
void UpdateZoneLEDs(int zone);
|
||||
void UpdateSingleLED(int led);
|
||||
|
||||
void SetCustomMode();
|
||||
void DeviceUpdateMode();
|
||||
void DeviceSaveMode();
|
||||
|
||||
private:
|
||||
void Init_Controller();
|
||||
int GetDeviceMode();
|
||||
|
|
|
|||
|
|
@ -175,11 +175,6 @@ void RGBController_CMMP750Controller::UpdateSingleLED(int led)
|
|||
UpdateZoneLEDs(led);
|
||||
}
|
||||
|
||||
void RGBController_CMMP750Controller::SetCustomMode()
|
||||
{
|
||||
active_mode = 0;
|
||||
}
|
||||
|
||||
void RGBController_CMMP750Controller::DeviceUpdateMode()
|
||||
{
|
||||
controller->SetMode(modes[active_mode].value, modes[active_mode].speed);
|
||||
|
|
|
|||
|
|
@ -27,8 +27,8 @@ public:
|
|||
void UpdateZoneLEDs(int zone);
|
||||
void UpdateSingleLED(int led);
|
||||
|
||||
void SetCustomMode();
|
||||
void DeviceUpdateMode();
|
||||
|
||||
private:
|
||||
CMMP750Controller* controller;
|
||||
|
||||
|
|
|
|||
|
|
@ -197,11 +197,6 @@ void RGBController_CMMonitorController::UpdateSingleLED(int /*led*/)
|
|||
DeviceUpdateLEDs();
|
||||
}
|
||||
|
||||
void RGBController_CMMonitorController::SetCustomMode()
|
||||
{
|
||||
active_mode = 0;
|
||||
}
|
||||
|
||||
void RGBController_CMMonitorController::DeviceUpdateMode()
|
||||
{
|
||||
switch(modes[active_mode].value)
|
||||
|
|
|
|||
|
|
@ -21,11 +21,13 @@ public:
|
|||
~RGBController_CMMonitorController();
|
||||
|
||||
void SetupZones();
|
||||
|
||||
void ResizeZone(int zone, int new_size);
|
||||
|
||||
void DeviceUpdateLEDs();
|
||||
void UpdateZoneLEDs(int zone);
|
||||
void UpdateSingleLED(int led);
|
||||
void SetCustomMode();
|
||||
|
||||
void DeviceUpdateMode();
|
||||
|
||||
private:
|
||||
|
|
|
|||
|
|
@ -222,11 +222,6 @@ void RGBController_CMR6000Controller::UpdateSingleLED(int /*led*/)
|
|||
DeviceUpdateLEDs();
|
||||
}
|
||||
|
||||
void RGBController_CMR6000Controller::SetCustomMode()
|
||||
{
|
||||
active_mode = 1;
|
||||
}
|
||||
|
||||
void RGBController_CMR6000Controller::DeviceUpdateMode()
|
||||
{
|
||||
DeviceUpdateLEDs();
|
||||
|
|
|
|||
|
|
@ -28,7 +28,6 @@ public:
|
|||
void UpdateZoneLEDs(int zone);
|
||||
void UpdateSingleLED(int led);
|
||||
|
||||
void SetCustomMode();
|
||||
void DeviceUpdateMode();
|
||||
private:
|
||||
CMR6000Controller* controller;
|
||||
|
|
|
|||
|
|
@ -265,18 +265,6 @@ void RGBController_CMRGBController::UpdateSingleLED(int /*led*/)
|
|||
{
|
||||
}
|
||||
|
||||
void RGBController_CMRGBController::SetCustomMode()
|
||||
{
|
||||
for(int mode_idx = 0; mode_idx < (int)modes.size() ; mode_idx++)
|
||||
{
|
||||
if(modes[mode_idx].value == CM_RGBC_MODE_MULTIPLE)
|
||||
{
|
||||
active_mode = mode_idx;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void RGBController_CMRGBController::DeviceUpdateMode()
|
||||
{
|
||||
RGBColor color_1 = (modes[active_mode].color_mode == MODE_COLORS_MODE_SPECIFIC) ? modes[active_mode].colors[0] : 0;
|
||||
|
|
|
|||
|
|
@ -28,7 +28,6 @@ public:
|
|||
void UpdateZoneLEDs(int zone);
|
||||
void UpdateSingleLED(int led);
|
||||
|
||||
void SetCustomMode();
|
||||
void DeviceUpdateMode();
|
||||
|
||||
private:
|
||||
|
|
|
|||
|
|
@ -207,11 +207,6 @@ void RGBController_CryorigH7QuadLumi::UpdateSingleLED(int led)
|
|||
controller->SetChannelLEDs(zone_idx, zones[zone_idx].colors, zones[zone_idx].leds_count);
|
||||
}
|
||||
|
||||
void RGBController_CryorigH7QuadLumi::SetCustomMode()
|
||||
{
|
||||
active_mode = 0;
|
||||
}
|
||||
|
||||
void RGBController_CryorigH7QuadLumi::DeviceUpdateMode()
|
||||
{
|
||||
if(modes[active_mode].value == CRYORIG_H7_QUAD_LUMI_MODE_FIXED)
|
||||
|
|
|
|||
|
|
@ -28,7 +28,6 @@ public:
|
|||
void UpdateZoneLEDs(int zone);
|
||||
void UpdateSingleLED(int led);
|
||||
|
||||
void SetCustomMode();
|
||||
void DeviceUpdateMode();
|
||||
|
||||
private:
|
||||
|
|
|
|||
|
|
@ -91,7 +91,7 @@ void RGBController_DDP::DeviceUpdateLEDs()
|
|||
std::vector<unsigned int> brightness_adjusted_colors;
|
||||
brightness_adjusted_colors.reserve(colors.size());
|
||||
float brightness_scale = (float)modes[active_mode].brightness / 100.0f;
|
||||
|
||||
|
||||
for(unsigned int color_idx = 0; color_idx < colors.size(); color_idx++)
|
||||
{
|
||||
unsigned int color = colors[color_idx];
|
||||
|
|
@ -122,11 +122,6 @@ void RGBController_DDP::DeviceUpdateMode()
|
|||
{
|
||||
}
|
||||
|
||||
void RGBController_DDP::SetCustomMode()
|
||||
{
|
||||
active_mode = 0;
|
||||
}
|
||||
|
||||
void RGBController_DDP::SetKeepaliveTime(unsigned int time_ms)
|
||||
{
|
||||
if(controller != nullptr)
|
||||
|
|
|
|||
|
|
@ -21,11 +21,13 @@ public:
|
|||
|
||||
void SetupZones();
|
||||
void ResizeZone(int zone, int new_size);
|
||||
|
||||
void DeviceUpdateLEDs();
|
||||
void UpdateZoneLEDs(int zone);
|
||||
void UpdateSingleLED(int led);
|
||||
|
||||
void DeviceUpdateMode();
|
||||
void SetCustomMode();
|
||||
|
||||
void SetKeepaliveTime(unsigned int time_ms);
|
||||
|
||||
private:
|
||||
|
|
|
|||
|
|
@ -627,11 +627,6 @@ void RGBController_Debug::UpdateSingleLED(int /*led*/)
|
|||
|
||||
}
|
||||
|
||||
void RGBController_Debug::SetCustomMode()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void RGBController_Debug::DeviceUpdateMode()
|
||||
{
|
||||
|
||||
|
|
|
|||
|
|
@ -31,6 +31,5 @@ public:
|
|||
void UpdateZoneLEDs(int zone);
|
||||
void UpdateSingleLED(int led);
|
||||
|
||||
void SetCustomMode();
|
||||
void DeviceUpdateMode();
|
||||
};
|
||||
|
|
|
|||
|
|
@ -933,18 +933,6 @@ void RGBController_EVisionV2Keyboard::UpdateSingleLED(int led)
|
|||
last_update_time = std::chrono::steady_clock::now();
|
||||
}
|
||||
|
||||
void RGBController_EVisionV2Keyboard::SetCustomMode()
|
||||
{
|
||||
if(part == EVISION_V2_KEYBOARD_PART_KEYBOARD)
|
||||
{
|
||||
active_mode = EVISION_V2_MODE_DIRECT;
|
||||
}
|
||||
else
|
||||
{
|
||||
active_mode = EVISION_V2_MODE2_STATIC;
|
||||
}
|
||||
}
|
||||
|
||||
void RGBController_EVisionV2Keyboard::DeviceUpdateMode()
|
||||
{
|
||||
mode set_mode = modes[active_mode];
|
||||
|
|
|
|||
|
|
@ -24,7 +24,6 @@ public:
|
|||
|
||||
void SetupZones() override;
|
||||
void ResizeZone(int zone, int new_size) override;
|
||||
void SetCustomMode() override;
|
||||
|
||||
void DeviceUpdateLEDs() override;
|
||||
void UpdateZoneLEDs(int zone) override;
|
||||
|
|
|
|||
|
|
@ -148,11 +148,6 @@ void RGBController_GainwardGPUv2::UpdateSingleLED(int /*led*/)
|
|||
DeviceUpdateLEDs();
|
||||
}
|
||||
|
||||
void RGBController_GainwardGPUv2::SetCustomMode()
|
||||
{
|
||||
active_mode = 0;
|
||||
}
|
||||
|
||||
void RGBController_GainwardGPUv2::DeviceUpdateMode()
|
||||
{
|
||||
mode current_mode = modes[(unsigned int)active_mode];
|
||||
|
|
|
|||
|
|
@ -28,7 +28,6 @@ public:
|
|||
void UpdateZoneLEDs(int zone);
|
||||
void UpdateSingleLED(int led);
|
||||
|
||||
void SetCustomMode();
|
||||
void DeviceUpdateMode();
|
||||
|
||||
private:
|
||||
|
|
|
|||
|
|
@ -415,9 +415,3 @@ void RGBController_LianLiGAIITrinity::DeviceUpdateMode()
|
|||
{
|
||||
DeviceUpdateLEDs();
|
||||
}
|
||||
|
||||
void RGBController_LianLiGAIITrinity::SetCustomMode()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -30,8 +30,6 @@ public:
|
|||
|
||||
void DeviceUpdateMode();
|
||||
|
||||
void SetCustomMode();
|
||||
|
||||
LianLiGAIITrinityController::GAII_Direction OpenRGBDirection2GAIIDirection(unsigned int openrgb_direction)
|
||||
{
|
||||
if(openrgb_direction == MODE_DIRECTION_LEFT)
|
||||
|
|
|
|||
|
|
@ -522,12 +522,3 @@ void RGBController_LianLiUniHubAL::DeviceUpdateMode()
|
|||
controller->SetChannelMode((unsigned char)zone_idx, modes[active_mode].value,modes[active_mode].colors, (unsigned int)modes[active_mode].colors.size(), (fan_idx >= 0 ? fan_idx : 0), upd_both_fan_edge, modes[active_mode].brightness, modes[active_mode].speed, modes[active_mode].direction);
|
||||
}
|
||||
}
|
||||
|
||||
void RGBController_LianLiUniHubAL::SetCustomMode()
|
||||
{
|
||||
/*-------------------------------------------------*\
|
||||
| Set mode to Static Color |
|
||||
\*-------------------------------------------------*/
|
||||
active_mode = 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -33,8 +33,6 @@ public:
|
|||
|
||||
void DeviceUpdateMode();
|
||||
|
||||
void SetCustomMode();
|
||||
|
||||
private:
|
||||
LianLiUniHubALController* controller;
|
||||
bool initializedMode;
|
||||
|
|
|
|||
|
|
@ -443,12 +443,3 @@ void RGBController_LianLiUniHubSLInfinity::DeviceUpdateMode()
|
|||
|
||||
}
|
||||
}
|
||||
|
||||
void RGBController_LianLiUniHubSLInfinity::SetCustomMode()
|
||||
{
|
||||
/*-------------------------------------------------*\
|
||||
| Set mode to Static Color |
|
||||
\*-------------------------------------------------*/
|
||||
active_mode = 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -35,8 +35,6 @@ public:
|
|||
|
||||
void DeviceUpdateMode();
|
||||
|
||||
void SetCustomMode();
|
||||
|
||||
private:
|
||||
LianLiUniHubSLInfinityController* controller;
|
||||
bool initializedMode;
|
||||
|
|
|
|||
|
|
@ -442,12 +442,3 @@ void RGBController_LianLiUniHubSLV2::DeviceUpdateMode()
|
|||
|
||||
}
|
||||
}
|
||||
|
||||
void RGBController_LianLiUniHubSLV2::SetCustomMode()
|
||||
{
|
||||
/*-------------------------------------------------*\
|
||||
| Set mode to Static Color |
|
||||
\*-------------------------------------------------*/
|
||||
active_mode = 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -34,8 +34,6 @@ public:
|
|||
|
||||
void DeviceUpdateMode();
|
||||
|
||||
void SetCustomMode();
|
||||
|
||||
private:
|
||||
LianLiUniHubSLV2Controller* controller;
|
||||
bool initializedMode;
|
||||
|
|
|
|||
|
|
@ -544,14 +544,6 @@ void RGBController_LianLiUniHub_AL10::DeviceUpdateMode()
|
|||
controller->Synchronize();
|
||||
}
|
||||
|
||||
void RGBController_LianLiUniHub_AL10::SetCustomMode()
|
||||
{
|
||||
/*-------------------------------------------------*\
|
||||
| Set mode to Static Color |
|
||||
\*-------------------------------------------------*/
|
||||
active_mode = 0;
|
||||
}
|
||||
|
||||
uint8_t RGBController_LianLiUniHub_AL10::convertAnyFanCount(uint8_t count)
|
||||
{
|
||||
switch (count)
|
||||
|
|
|
|||
|
|
@ -32,8 +32,6 @@ public:
|
|||
|
||||
void DeviceUpdateMode();
|
||||
|
||||
void SetCustomMode();
|
||||
|
||||
private:
|
||||
uint8_t convertAnyFanCount(uint8_t count);
|
||||
uint8_t convertLedSpeed(uint8_t speed);
|
||||
|
|
|
|||
|
|
@ -23,14 +23,14 @@
|
|||
RGBController_MadCatzCyborg::RGBController_MadCatzCyborg(MadCatzCyborgController* controller_ptr)
|
||||
{
|
||||
controller = controller_ptr;
|
||||
|
||||
|
||||
name = "MadCatz Cyborg Gaming Light";
|
||||
vendor = "MadCatz";
|
||||
type = DEVICE_TYPE_ACCESSORY;
|
||||
description = "MadCatz Cyborg Gaming Light";
|
||||
location = controller->GetDeviceLocation();
|
||||
serial = controller->GetSerialString();
|
||||
|
||||
|
||||
mode Direct;
|
||||
Direct.name = "Direct";
|
||||
Direct.value = 0;
|
||||
|
|
@ -40,9 +40,9 @@ RGBController_MadCatzCyborg::RGBController_MadCatzCyborg(MadCatzCyborgController
|
|||
Direct.brightness_max = 100;
|
||||
Direct.brightness = 100;
|
||||
modes.push_back(Direct);
|
||||
|
||||
|
||||
SetupZones();
|
||||
|
||||
|
||||
controller->SetIntensity(modes[active_mode].brightness);
|
||||
}
|
||||
|
||||
|
|
@ -54,20 +54,20 @@ RGBController_MadCatzCyborg::~RGBController_MadCatzCyborg()
|
|||
void RGBController_MadCatzCyborg::SetupZones()
|
||||
{
|
||||
zone cyborg_zone;
|
||||
|
||||
|
||||
cyborg_zone.name = "Cyborg";
|
||||
cyborg_zone.type = ZONE_TYPE_SINGLE;
|
||||
cyborg_zone.leds_min = 1;
|
||||
cyborg_zone.leds_max = 1;
|
||||
cyborg_zone.leds_count = 1;
|
||||
cyborg_zone.matrix_map = NULL;
|
||||
|
||||
|
||||
zones.push_back(cyborg_zone);
|
||||
|
||||
|
||||
led cyborg_led;
|
||||
cyborg_led.name = "LED";
|
||||
leds.push_back(cyborg_led);
|
||||
|
||||
|
||||
SetupColors();
|
||||
}
|
||||
|
||||
|
|
@ -102,8 +102,3 @@ void RGBController_MadCatzCyborg::DeviceUpdateMode()
|
|||
controller->SetIntensity(modes[active_mode].brightness);
|
||||
}
|
||||
}
|
||||
|
||||
void RGBController_MadCatzCyborg::SetCustomMode()
|
||||
{
|
||||
active_mode = 0;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,13 +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:
|
||||
MadCatzCyborgController* controller;
|
||||
|
|
|
|||
|
|
@ -281,11 +281,6 @@ void RGBController_OKSKeyboard::UpdateSingleLED(int led)
|
|||
UpdateZoneLEDs(led);
|
||||
}
|
||||
|
||||
void RGBController_OKSKeyboard::SetCustomMode()
|
||||
{
|
||||
active_mode = 0;
|
||||
}
|
||||
|
||||
void RGBController_OKSKeyboard::DeviceUpdateMode()
|
||||
{
|
||||
mode m = modes[active_mode];
|
||||
|
|
|
|||
|
|
@ -66,7 +66,6 @@ public:
|
|||
void UpdateZoneLEDs(int zone);
|
||||
void UpdateSingleLED(int led);
|
||||
|
||||
void SetCustomMode();
|
||||
void DeviceUpdateMode();
|
||||
|
||||
private:
|
||||
|
|
|
|||
|
|
@ -143,10 +143,3 @@ void RGBController_GenesisXenon200::UpdateSingleLED(int /*led*/)
|
|||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
void RGBController_GenesisXenon200::SetCustomMode()
|
||||
{
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -40,8 +40,6 @@ public:
|
|||
void DeviceUpdateMode();
|
||||
void DeviceSaveMode();
|
||||
|
||||
void SetCustomMode();
|
||||
|
||||
private:
|
||||
GenesisXenon200Controller* controller;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -156,14 +156,6 @@ void RGBController_SinowealthKeyboard90::UpdateSingleLED(int /*key*/)
|
|||
DeviceUpdateLEDs();
|
||||
}
|
||||
|
||||
void RGBController_SinowealthKeyboard90::SetCustomMode()
|
||||
{
|
||||
/*---------------------------------------------------------*\
|
||||
| In our case, custom mode is on index MODE_CUSTOM |
|
||||
\*---------------------------------------------------------*/
|
||||
active_mode = MODE_CUSTOM;
|
||||
}
|
||||
|
||||
void RGBController_SinowealthKeyboard90::DeviceUpdateMode()
|
||||
{
|
||||
if (modes[active_mode].value == MODE_CUSTOM)
|
||||
|
|
|
|||
|
|
@ -26,7 +26,6 @@ public:
|
|||
void UpdateZoneLEDs(int zone);
|
||||
void UpdateSingleLED(int led);
|
||||
|
||||
void SetCustomMode();
|
||||
void DeviceUpdateMode();
|
||||
|
||||
private:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue