mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-05-11 16:13:45 -04:00
Store name in HyperXMousematControllers to avoid setting it in detector
This commit is contained in:
@@ -13,11 +13,12 @@
|
||||
#include "HyperXMousematController.h"
|
||||
#include "StringUtils.h"
|
||||
|
||||
HyperXMousematController::HyperXMousematController(hidapi_wrapper hid_wrapper, hid_device* dev_handle, const char* path)
|
||||
HyperXMousematController::HyperXMousematController(hidapi_wrapper hid_wrapper, hid_device* dev_handle, const char* path, std::string dev_name)
|
||||
{
|
||||
wrapper = hid_wrapper;
|
||||
dev = dev_handle;
|
||||
location = path;
|
||||
name = dev_name;
|
||||
}
|
||||
|
||||
HyperXMousematController::~HyperXMousematController()
|
||||
@@ -30,6 +31,11 @@ std::string HyperXMousematController::GetDeviceLocation()
|
||||
return("HID " + location);
|
||||
}
|
||||
|
||||
std::string HyperXMousematController::GetNameString()
|
||||
{
|
||||
return(name);
|
||||
}
|
||||
|
||||
std::string HyperXMousematController::GetSerialString()
|
||||
{
|
||||
wchar_t serial_string[128];
|
||||
|
||||
Reference in New Issue
Block a user