mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-09-14 14:17:46 -04:00
Add autonomous mode as a selectable mode
This commit is contained in:
1 parent
422414737b
commit
2ac41813fa
3 files changed
+16
-4
No files matched your search
@@ -71,6 +71,13 @@ RGBController_HIDLampArray::RGBController_HIDLampArray(HIDLampArrayController* c
|
||||
Direct.color_mode = MODE_COLORS_PER_LED;
|
||||
modes.push_back(Direct);
|
||||
|
||||
mode Autonomous;
|
||||
Autonomous.name = "Autonomous";
|
||||
Autonomous.value = 1;
|
||||
Autonomous.flags = 0;
|
||||
Autonomous.color_mode = MODE_COLORS_NONE;
|
||||
modes.push_back(Autonomous);
|
||||
|
||||
SetupZones();
|
||||
}
|
||||
|
||||
@@ -411,5 +418,12 @@ void RGBController_HIDLampArray::DeviceUpdateSingleLED(int /*led*/)
|
||||
|
||||
void RGBController_HIDLampArray::DeviceUpdateMode()
|
||||
{
|
||||
|
||||
if(modes[active_mode].value == 0)
|
||||
{
|
||||
controller->SetLampArrayControlReport(false);
|
||||
}
|
||||
else
|
||||
{
|
||||
controller->SetLampArrayControlReport(true);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user