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