Remove SetCustomMode from all controllers beginning with the letters V, W, Y, and Z
This commit is contained in:
parent
9d7fef5bbc
commit
1396cc8f92
11 changed files with 28 additions and 64 deletions
|
|
@ -182,17 +182,17 @@ static const char *led_names[] =
|
|||
@comment
|
||||
\*-------------------------------------------------------------------*/
|
||||
|
||||
RGBController_WootingKeyboard::RGBController_WootingKeyboard(WootingKeyboardController *wooting_ptr)
|
||||
RGBController_WootingKeyboard::RGBController_WootingKeyboard(WootingKeyboardController* controller_ptr)
|
||||
{
|
||||
wooting = wooting_ptr;
|
||||
controller = controller_ptr;
|
||||
|
||||
LOG_DEBUG("%sAdding meta data", WOOTING_CONTROLLER_NAME);
|
||||
name = wooting_ptr->GetName();
|
||||
vendor = wooting_ptr->GetVendor();
|
||||
name = controller->GetName();
|
||||
vendor = controller->GetVendor();
|
||||
type = DEVICE_TYPE_KEYBOARD;
|
||||
description = wooting_ptr->GetDescription();
|
||||
location = wooting_ptr->GetLocation();
|
||||
serial = wooting_ptr->GetSerial();
|
||||
description = controller->GetDescription();
|
||||
location = controller->GetLocation();
|
||||
serial = controller->GetSerial();
|
||||
|
||||
LOG_DEBUG("%sAdding modes", WOOTING_CONTROLLER_NAME);
|
||||
mode Direct;
|
||||
|
|
@ -217,6 +217,8 @@ RGBController_WootingKeyboard::~RGBController_WootingKeyboard()
|
|||
delete zones[zone_index].matrix_map;
|
||||
}
|
||||
}
|
||||
|
||||
delete controller;
|
||||
}
|
||||
|
||||
void RGBController_WootingKeyboard::SetupZones()
|
||||
|
|
@ -224,7 +226,7 @@ void RGBController_WootingKeyboard::SetupZones()
|
|||
/*---------------------------------------------------------*\
|
||||
| Set up zones |
|
||||
\*---------------------------------------------------------*/
|
||||
uint8_t wooting_type = wooting->GetWootingType();
|
||||
uint8_t wooting_type = controller->GetWootingType();
|
||||
unsigned int total_led_count = zone_sizes[wooting_type];
|
||||
|
||||
LOG_DEBUG("%sCreating New Zone", WOOTING_CONTROLLER_NAME);
|
||||
|
|
@ -276,7 +278,7 @@ void RGBController_WootingKeyboard::ResizeZone(int /*zone*/, int /*new_size*/)
|
|||
|
||||
void RGBController_WootingKeyboard::DeviceUpdateLEDs()
|
||||
{
|
||||
wooting->SendDirect(&colors[0], colors.size());
|
||||
controller->SendDirect(&colors[0], colors.size());
|
||||
}
|
||||
|
||||
void RGBController_WootingKeyboard::UpdateZoneLEDs(int /*zone*/)
|
||||
|
|
@ -289,11 +291,6 @@ void RGBController_WootingKeyboard::UpdateSingleLED(int /*led*/)
|
|||
DeviceUpdateLEDs();
|
||||
}
|
||||
|
||||
void RGBController_WootingKeyboard::SetCustomMode()
|
||||
{
|
||||
active_mode = 0;
|
||||
}
|
||||
|
||||
void RGBController_WootingKeyboard::DeviceUpdateMode()
|
||||
{
|
||||
}
|
||||
|
|
|
|||
|
|
@ -14,20 +14,18 @@
|
|||
class RGBController_WootingKeyboard : public RGBController
|
||||
{
|
||||
public:
|
||||
RGBController_WootingKeyboard(WootingKeyboardController* wooting_ptr);
|
||||
RGBController_WootingKeyboard(WootingKeyboardController* controller_ptr);
|
||||
~RGBController_WootingKeyboard();
|
||||
|
||||
void SetupZones();
|
||||
|
||||
void ResizeZone(int zone, int new_size);
|
||||
|
||||
void DeviceUpdateLEDs();
|
||||
void UpdateZoneLEDs(int zone);
|
||||
void UpdateSingleLED(int led);
|
||||
|
||||
void SetCustomMode();
|
||||
void DeviceUpdateMode();
|
||||
|
||||
private:
|
||||
WootingKeyboardController* wooting;
|
||||
WootingKeyboardController* controller;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue