Store name in AlienwareKeyboardControllers to avoid setting it in detector

This commit is contained in:
Adam Honse
2025-08-03 18:43:02 -05:00
parent 90c1e10cc5
commit 5e45480a0e
7 changed files with 26 additions and 10 deletions

View File

@@ -13,10 +13,11 @@
#include "AlienwareAW510KController.h"
#include "StringUtils.h"
AlienwareAW510KController::AlienwareAW510KController(hid_device* dev_handle, const char* path)
AlienwareAW510KController::AlienwareAW510KController(hid_device* dev_handle, const char* path, std::string dev_name)
{
dev = dev_handle;
location = path;
name = dev_name;
SendCommit();
}
@@ -31,6 +32,11 @@ std::string AlienwareAW510KController::GetDeviceLocation()
return("HID: " + location);
}
std::string AlienwareAW510KController::GetDeviceName()
{
return(name);
}
std::string AlienwareAW510KController::GetSerialString()
{
wchar_t serial_string[128];