Initial commit for the Logitech G633 to resolve #2911

* Adding the G633 PID to LogitechControllerDetect.cpp
* Registering the detector for the common controller
* Fixing the indexing swap issue for LogitechLightspeedController
* Removing the `bright_cycle_swap` hack and using the queried effects index to set the mode.value for each mode
This commit is contained in:
Chris
2022-12-06 10:38:39 +11:00
parent c2c9b3aa99
commit 612c809b75
6 changed files with 133 additions and 109 deletions

View File

@@ -54,15 +54,14 @@ std::string LogitechLightspeedController::GetSerialString()
void LogitechLightspeedController::SendMouseMode
(
unsigned char mode,
uint16_t speed,
unsigned char zone,
unsigned char red,
unsigned char green,
unsigned char blue,
unsigned char brightness,
bool bright_cycle_swap
uint8_t mode,
uint16_t speed,
uint8_t zone,
uint8_t red,
uint8_t green,
uint8_t blue,
uint8_t brightness
)
{
lightspeed->setMode(mode, speed, zone, red, green, blue, brightness, bright_cycle_swap);
lightspeed->setMode(mode, speed, zone, red, green, blue, brightness);
}