mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-10-22 16:45:06 -04:00
Store name in WootingKeyboardController to avoid setting it in detector
This commit is contained in:
1 parent
550503d757
commit
d069947252
6 files changed
+19
-19
No files matched your search
+2
-1
@@ -53,10 +53,11 @@ static uint16_t getCrc16ccitt(const uint8_t* buffer, uint16_t size)
|
||||
return crc;
|
||||
}
|
||||
|
||||
WootingOneKeyboardController::WootingOneKeyboardController(hid_device* dev_handle, const char *path, uint8_t wooting_type)
|
||||
WootingOneKeyboardController::WootingOneKeyboardController(hid_device* dev_handle, const char *path, uint8_t wooting_type, std::string dev_name)
|
||||
{
|
||||
dev = dev_handle;
|
||||
location = path;
|
||||
name = dev_name;
|
||||
this->wooting_type = wooting_type;
|
||||
key_code_limit = (wooting_type == WOOTING_KB_TKL) ? WOOTING_ONE_KEY_CODE_LIMIT : WOOTING_TWO_KEY_CODE_LIMIT;
|
||||
|
||||
|
||||
+1
-1
@@ -16,7 +16,7 @@
|
||||
class WootingOneKeyboardController : public WootingKeyboardController
|
||||
{
|
||||
public:
|
||||
WootingOneKeyboardController(hid_device* dev_handle, const char *path, uint8_t wooting_type);
|
||||
WootingOneKeyboardController(hid_device* dev_handle, const char *path, uint8_t wooting_type, std::string dev_name);
|
||||
~WootingOneKeyboardController();
|
||||
|
||||
void SendDirect(RGBColor* colors, uint8_t colour_count);
|
||||
|
||||
Reference in new issue
Block a user