mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-04-08 16:07:38 -04:00
Store name in InstantMouseController to avoid setting it in detector
This commit is contained in:
@@ -13,12 +13,12 @@
|
||||
#include "InstantMouseController.h"
|
||||
#include "StringUtils.h"
|
||||
|
||||
InstantMouseController::InstantMouseController(hid_device* dev_handle, const hid_device_info& info)
|
||||
InstantMouseController::InstantMouseController(hid_device* dev_handle, const hid_device_info& info, std::string dev_name)
|
||||
{
|
||||
dev = dev_handle;
|
||||
location = info.path;
|
||||
pid = info.product_id;
|
||||
version = "";
|
||||
name = dev_name;
|
||||
}
|
||||
|
||||
InstantMouseController::~InstantMouseController()
|
||||
@@ -31,6 +31,11 @@ std::string InstantMouseController::GetDeviceLocation()
|
||||
return("HID: " + location);
|
||||
}
|
||||
|
||||
std::string InstantMouseController::GetNameString()
|
||||
{
|
||||
return(name);
|
||||
}
|
||||
|
||||
std::string InstantMouseController::GetSerialString()
|
||||
{
|
||||
wchar_t serial_string[128];
|
||||
@@ -49,11 +54,6 @@ uint16_t InstantMouseController::GetPID()
|
||||
return pid;
|
||||
}
|
||||
|
||||
std::string InstantMouseController::GetFirmwareVersion()
|
||||
{
|
||||
return(version);
|
||||
}
|
||||
|
||||
void InstantMouseController::SendColor(RGBColor color)
|
||||
{
|
||||
/*---------------------------------------------------------*\
|
||||
|
||||
Reference in New Issue
Block a user