mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-03-31 20:31:18 -04:00
Store name in LogitechControllers to avoid setting it in detectors
This commit is contained in:
@@ -13,10 +13,11 @@
|
||||
|
||||
#define PACKET_SIZE 20
|
||||
|
||||
LogitechG203LController::LogitechG203LController(hid_device* dev_handle, const char* path)
|
||||
LogitechG203LController::LogitechG203LController(hid_device* dev_handle, const char* path, std::string dev_name)
|
||||
{
|
||||
dev = dev_handle;
|
||||
location = path;
|
||||
name = dev_name;
|
||||
|
||||
// enable software control
|
||||
unsigned char usb_buf[PACKET_SIZE];
|
||||
@@ -47,6 +48,11 @@ std::string LogitechG203LController::GetDeviceLocation()
|
||||
return("HID: " + location);
|
||||
}
|
||||
|
||||
std::string LogitechG203LController::GetNameString()
|
||||
{
|
||||
return(name);
|
||||
}
|
||||
|
||||
std::string LogitechG203LController::GetSerialString()
|
||||
{
|
||||
wchar_t serial_string[128];
|
||||
|
||||
Reference in New Issue
Block a user