Store name in AlienwareKeyboardControllers to avoid setting it in detector

This commit is contained in:
Adam Honse committed 2025-08-03 18:43:02 -05:00
1 parent 90c1e10cc5
commit 5e45480a0e
7 files changed
+26 -10

No files matched your search

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