diff --git a/Controllers/HoltekController/HoltekA070Controller.cpp b/Controllers/HoltekController/HoltekA070Controller.cpp index ebf2fd94e..f7490f330 100644 --- a/Controllers/HoltekController/HoltekA070Controller.cpp +++ b/Controllers/HoltekController/HoltekA070Controller.cpp @@ -10,9 +10,15 @@ #include -HoltekA070Controller::HoltekA070Controller(hid_device* dev_handle) +HoltekA070Controller::HoltekA070Controller(hid_device* dev_handle, const char* path) { - dev = dev_handle; + dev = dev_handle; + location = path; +} + +std::string HoltekA070Controller::GetDeviceLocation() +{ + return(location); } /*-------------------------------------------------------------------------------------------------*\ diff --git a/Controllers/HoltekController/HoltekA070Controller.h b/Controllers/HoltekController/HoltekA070Controller.h index 8bd6998cf..5f1d1f04c 100644 --- a/Controllers/HoltekController/HoltekA070Controller.h +++ b/Controllers/HoltekController/HoltekA070Controller.h @@ -24,9 +24,11 @@ enum class HoltekA070Controller { public: - HoltekA070Controller(hid_device* dev_handle); + HoltekA070Controller(hid_device* dev_handle, const char* path); ~HoltekA070Controller(); + std::string GetDeviceLocation(); + void SendCustomColor ( unsigned char red, @@ -41,4 +43,5 @@ public: private: hid_device* dev; + std::string location; }; diff --git a/Controllers/HoltekController/HoltekControllerDetect.cpp b/Controllers/HoltekController/HoltekControllerDetect.cpp index a341f3d89..c85cabd7a 100644 --- a/Controllers/HoltekController/HoltekControllerDetect.cpp +++ b/Controllers/HoltekController/HoltekControllerDetect.cpp @@ -65,7 +65,7 @@ void DetectHoltekControllers(std::vector& rgb_controllers) { case HOLTEK_A070_PID: { - HoltekA070Controller* controller = new HoltekA070Controller(dev); + HoltekA070Controller* controller = new HoltekA070Controller(dev, info->path); RGBController_HoltekA070* rgb_controller = new RGBController_HoltekA070(controller); diff --git a/Controllers/HoltekController/RGBController_HoltekA070.cpp b/Controllers/HoltekController/RGBController_HoltekA070.cpp index f9bbd784d..8c090817d 100644 --- a/Controllers/HoltekController/RGBController_HoltekA070.cpp +++ b/Controllers/HoltekController/RGBController_HoltekA070.cpp @@ -15,6 +15,7 @@ RGBController_HoltekA070::RGBController_HoltekA070(HoltekA070Controller* holtek_ name = "Holtek USB Gaming Mouse Device"; type = DEVICE_TYPE_MOUSE; description = "Holtek USB Gaming Mouse Device"; + location = holtek->GetDeviceLocation(); mode Static; Static.name = "Static";