mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-02-28 12:16:06 -05:00
Use HID path for Location on Logitech mouse controllers
This commit is contained in:
@@ -11,9 +11,10 @@
|
||||
|
||||
#include <cstring>
|
||||
|
||||
LogitechG403Controller::LogitechG403Controller(hid_device* dev_handle)
|
||||
LogitechG403Controller::LogitechG403Controller(hid_device* dev_handle, const char* path)
|
||||
{
|
||||
dev = dev_handle;
|
||||
dev = dev_handle;
|
||||
location = path;
|
||||
}
|
||||
|
||||
LogitechG403Controller::~LogitechG403Controller()
|
||||
@@ -21,6 +22,11 @@ LogitechG403Controller::~LogitechG403Controller()
|
||||
hid_close(dev);
|
||||
}
|
||||
|
||||
std::string LogitechG403Controller::GetDeviceLocation()
|
||||
{
|
||||
return(location);
|
||||
}
|
||||
|
||||
void LogitechG403Controller::SendMouseMode
|
||||
(
|
||||
unsigned char mode,
|
||||
|
||||
Reference in New Issue
Block a user