Use HID path for Location on MSI 3 Zone controller

This commit is contained in:
Adam Honse
2020-10-04 18:38:56 -05:00
parent 43cea0a1b2
commit acced4d036
4 changed files with 31 additions and 10 deletions

View File

@@ -9,9 +9,10 @@
#include "MSI3ZoneController.h"
MSI3ZoneController::MSI3ZoneController(hid_device* dev_handle)
MSI3ZoneController::MSI3ZoneController(hid_device* dev_handle, const char* path)
{
dev = dev_handle;
dev = dev_handle;
location = path;
//strcpy(device_name, "MSI 3-Zone Keyboard");
}
@@ -26,6 +27,11 @@ char* MSI3ZoneController::GetDeviceName()
return device_name;
}
std::string MSI3ZoneController::GetDeviceLocation()
{
return(location);
}
void MSI3ZoneController::SetLEDs(std::vector<RGBColor> colors)
{
//Shout out to bparker06 for reverse engineering the MSI keyboard USB protocol!