mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-05-24 14:35:01 -04:00
Add HID: prefix to all HID detector locations
This commit is contained in:
@@ -31,9 +31,9 @@ SonyDS4Controller::SonyDS4Controller(hid_device * device_handle, const char * de
|
||||
location = device_path;
|
||||
}
|
||||
|
||||
const char * SonyDS4Controller::GetLocation()
|
||||
std::string SonyDS4Controller::GetLocation()
|
||||
{
|
||||
return location;
|
||||
return("HID: " + location);
|
||||
}
|
||||
|
||||
void SonyDS4Controller::SetColors(unsigned char red, unsigned char green, unsigned char blue)
|
||||
|
||||
@@ -8,19 +8,21 @@
|
||||
|
||||
#include <hidapi/hidapi.h>
|
||||
|
||||
#include <string>
|
||||
|
||||
class SonyDS4Controller
|
||||
{
|
||||
public:
|
||||
SonyDS4Controller(hid_device * device_handle, const char * device_path);
|
||||
|
||||
const char* GetLocation();
|
||||
std::string GetLocation();
|
||||
|
||||
void SetColors(unsigned char red, unsigned char green, unsigned char blue);
|
||||
|
||||
private:
|
||||
hid_device* device_handle;
|
||||
bool is_bluetooth = false;
|
||||
const char* location;
|
||||
std::string location;
|
||||
|
||||
void sendReportUSB(unsigned char red, unsigned char green, unsigned char blue);
|
||||
void sendReportBT(unsigned char red, unsigned char green, unsigned char blue);
|
||||
|
||||
Reference in New Issue
Block a user