mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-10-24 09:28:52 -04:00
Store name in LogitechControllers to avoid setting it in detectors
This commit is contained in:
1 parent
86fbdfa6e7
commit
a0726dc065
35 files changed
+258
-185
No files matched your search
@@ -17,10 +17,11 @@
|
||||
|
||||
using namespace std::chrono_literals;
|
||||
|
||||
LogitechG933Controller::LogitechG933Controller(hid_device* dev_handle, const char* path)
|
||||
LogitechG933Controller::LogitechG933Controller(hid_device* dev_handle, const char* path, std::string dev_name)
|
||||
{
|
||||
dev = dev_handle;
|
||||
location = path;
|
||||
name = dev_name;
|
||||
}
|
||||
|
||||
LogitechG933Controller::~LogitechG933Controller()
|
||||
@@ -33,6 +34,11 @@ std::string LogitechG933Controller::GetDeviceLocation()
|
||||
return("HID: " + location);
|
||||
}
|
||||
|
||||
std::string LogitechG933Controller::GetDeviceName()
|
||||
{
|
||||
return(name);
|
||||
}
|
||||
|
||||
void LogitechG933Controller::SetDirectMode(uint8_t zone)
|
||||
{
|
||||
unsigned char usb_buf[LOGI_G933_LED_PACKET_SIZE];
|
||||
|
||||
Reference in new issue
Block a user