Use HID path for Location on HyperX Keyboard controller

This commit is contained in:
Adam Honse 2020-10-02 12:28:09 -05:00
parent 158aac5ee4
commit d6350c8504
4 changed files with 14 additions and 4 deletions

View file

@ -65,9 +65,11 @@ enum
class HyperXKeyboardController
{
public:
HyperXKeyboardController(hid_device* dev_handle);
HyperXKeyboardController(hid_device* dev_handle, const char* path);
~HyperXKeyboardController();
std::string GetDeviceLocation();
void SetMode
(
unsigned char mode,
@ -84,6 +86,7 @@ private:
unsigned char active_mode;
unsigned char active_direction;
unsigned char active_speed;
std::string location;
void SelectProfile
(