Store name in SinowealthControllers to avoid setting it in detectors
This commit is contained in:
parent
f1a050a503
commit
c2e0bd496f
23 changed files with 538 additions and 490 deletions
|
|
@ -61,11 +61,12 @@ enum
|
|||
class SinowealthKeyboardController
|
||||
{
|
||||
public:
|
||||
SinowealthKeyboardController(hid_device* dev_cmd_handle, hid_device* dev_data_handle, char *_path); //RGB, Command, path
|
||||
SinowealthKeyboardController(hid_device* dev_cmd_handle, hid_device* dev_data_handle, char *_path, std::string dev_name); //RGB, Command, path
|
||||
~SinowealthKeyboardController();
|
||||
|
||||
unsigned int GetLEDCount();
|
||||
std::string GetLocation();
|
||||
std::string GetName();
|
||||
std::string GetSerialString();
|
||||
unsigned char GetCurrentMode();
|
||||
|
||||
|
|
@ -79,11 +80,9 @@ private:
|
|||
hid_device* dev_cmd;
|
||||
hid_device* dev_data;
|
||||
device_type type;
|
||||
|
||||
unsigned int led_count;
|
||||
|
||||
unsigned char current_mode;
|
||||
unsigned char current_speed;
|
||||
|
||||
std::string location;
|
||||
std::string name;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue