Use HID path for Location on Logitech mouse controllers
This commit is contained in:
parent
7b93275443
commit
ffb452f6f4
18 changed files with 89 additions and 29 deletions
|
|
@ -11,9 +11,10 @@
|
|||
|
||||
#include <cstring>
|
||||
|
||||
LogitechGProWirelessController::LogitechGProWirelessController(hid_device* dev_handle)
|
||||
LogitechGProWirelessController::LogitechGProWirelessController(hid_device* dev_handle, const char* path)
|
||||
{
|
||||
dev = dev_handle;
|
||||
dev = dev_handle;
|
||||
location = path;
|
||||
}
|
||||
|
||||
LogitechGProWirelessController::~LogitechGProWirelessController()
|
||||
|
|
@ -21,6 +22,11 @@ LogitechGProWirelessController::~LogitechGProWirelessController()
|
|||
hid_close(dev);
|
||||
}
|
||||
|
||||
std::string LogitechGProWirelessController::GetDeviceLocation()
|
||||
{
|
||||
return(location);
|
||||
}
|
||||
|
||||
void LogitechGProWirelessController::SendMouseMode
|
||||
(
|
||||
unsigned char mode,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue