Rework to use only a single hid_device and DetectionManager API

This commit is contained in:
Adam Honse
2026-01-29 12:23:48 -06:00
parent 93fc206dec
commit b4372b82bc
5 changed files with 48 additions and 99 deletions

View File

@@ -15,7 +15,7 @@ RGBController_HIDLampArray::RGBController_HIDLampArray(HIDLampArrayController* c
{
controller = controller_ptr;
name = "HID LampArray Device";
name = controller->GetDeviceName();
vendor = "Generic";
type = DEVICE_TYPE_MOUSEMAT;
description = "HID LampArray Device";
@@ -34,7 +34,7 @@ RGBController_HIDLampArray::RGBController_HIDLampArray(HIDLampArrayController* c
RGBController_HIDLampArray::~RGBController_HIDLampArray()
{
delete controller;
}
void RGBController_HIDLampArray::SetupZones()
@@ -58,11 +58,6 @@ void RGBController_HIDLampArray::SetupZones()
SetupColors();
}
void RGBController_HIDLampArray::ResizeZone(int /*zone*/, int /*new_size*/)
{
}
void RGBController_HIDLampArray::DeviceUpdateLEDs()
{
unsigned int leds_to_go = leds.size();
@@ -100,12 +95,12 @@ void RGBController_HIDLampArray::DeviceUpdateLEDs()
}
}
void RGBController_HIDLampArray::UpdateZoneLEDs(int /*zone*/)
void RGBController_HIDLampArray::DeviceUpdateZoneLEDs(int /*zone*/)
{
}
void RGBController_HIDLampArray::UpdateSingleLED(int /*led*/)
void RGBController_HIDLampArray::DeviceUpdateSingleLED(int /*led*/)
{
}