mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-10-19 15:22:10 -04:00
Use HID path for Location on Ducky Keyboard controller
This commit is contained in:
1 parent
1618de46b9
commit
96da5d5181
4 files changed
+16
-6
No files matched your search
@@ -10,9 +10,10 @@
|
||||
#include <cstring>
|
||||
#include "DuckyKeyboardController.h"
|
||||
|
||||
DuckyKeyboardController::DuckyKeyboardController(hid_device* dev_handle)
|
||||
DuckyKeyboardController::DuckyKeyboardController(hid_device* dev_handle, const char* path)
|
||||
{
|
||||
dev = dev_handle;
|
||||
dev = dev_handle;
|
||||
location = path;
|
||||
|
||||
SendInitialize();
|
||||
}
|
||||
@@ -22,6 +23,11 @@ DuckyKeyboardController::~DuckyKeyboardController()
|
||||
|
||||
}
|
||||
|
||||
std::string DuckyKeyboardController::GetDeviceLocation()
|
||||
{
|
||||
return(location);
|
||||
}
|
||||
|
||||
void DuckyKeyboardController::SendColors
|
||||
(
|
||||
unsigned char* color_data,
|
||||
@@ -184,4 +190,4 @@ void DuckyKeyboardController::SendTerminateColorPacket()
|
||||
| Send packet |
|
||||
\*-----------------------------------------------------*/
|
||||
hid_write(dev, (unsigned char *)usb_buf, 65);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user