Use HID path for Location on Logitech mouse controllers

This commit is contained in:
Adam Honse 2020-10-29 23:55:30 -05:00
parent 7b93275443
commit ffb452f6f4
18 changed files with 89 additions and 29 deletions

View file

@ -11,9 +11,10 @@
#include <cstring>
LogitechGPowerPlayController::LogitechGPowerPlayController(hid_device* dev_handle)
LogitechGPowerPlayController::LogitechGPowerPlayController(hid_device* dev_handle, const char* path)
{
dev = dev_handle;
dev = dev_handle;
location = path;
}
LogitechGPowerPlayController::~LogitechGPowerPlayController()
@ -21,6 +22,11 @@ LogitechGPowerPlayController::~LogitechGPowerPlayController()
hid_close(dev);
}
std::string LogitechGPowerPlayController::GetDeviceLocation()
{
return(location);
}
void LogitechGPowerPlayController::SendMouseMatMode
(
unsigned char mode,