mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-01-23 06:27:53 -05:00
Store name in EVisionKeyboardControllers to avoid setting it in detectors
This commit is contained in:
@@ -14,10 +14,11 @@
|
||||
#include "EVisionKeyboardController.h"
|
||||
#include "StringUtils.h"
|
||||
|
||||
EVisionKeyboardController::EVisionKeyboardController(hid_device* dev_handle, const char* path)
|
||||
EVisionKeyboardController::EVisionKeyboardController(hid_device* dev_handle, const char* path, std::string dev_name)
|
||||
{
|
||||
dev = dev_handle;
|
||||
location = path;
|
||||
name = dev_name;
|
||||
}
|
||||
|
||||
EVisionKeyboardController::~EVisionKeyboardController()
|
||||
@@ -30,6 +31,11 @@ std::string EVisionKeyboardController::GetDeviceLocation()
|
||||
return("HID: " + location);
|
||||
}
|
||||
|
||||
std::string EVisionKeyboardController::GetNameString()
|
||||
{
|
||||
return(name);
|
||||
}
|
||||
|
||||
std::string EVisionKeyboardController::GetSerialString()
|
||||
{
|
||||
wchar_t serial_string[128];
|
||||
|
||||
Reference in New Issue
Block a user