Use HID path for Location on HyperX Alloy Origins controller

This commit is contained in:
Adam Honse committed 2020-10-02 12:55:23 -05:00
1 parent d6350c8504
commit 2f08436e95
4 files changed
+14 -4

No files matched your search

@@ -14,9 +14,10 @@
// Skip these indices in the color output
static unsigned int skip_idx[] = { 6, 23, 29, 41, 47, 59, 70, 71, 75, 76, 87, 88, 93, 99, 100, 102, 108, 113, 114, 120, 123, 124 };
HyperXAlloyOriginsController::HyperXAlloyOriginsController(hid_device* dev_handle)
HyperXAlloyOriginsController::HyperXAlloyOriginsController(hid_device* dev_handle, const char* path)
{
dev = dev_handle;
dev = dev_handle;
location = path;
}
HyperXAlloyOriginsController::~HyperXAlloyOriginsController()
@@ -24,6 +25,11 @@ HyperXAlloyOriginsController::~HyperXAlloyOriginsController()
}
std::string HyperXAlloyOriginsController::GetDeviceLocation()
{
return(location);
}
void HyperXAlloyOriginsController::SetLEDsDirect(std::vector<RGBColor> colors)
{
/*-----------------------------------------------------*\