Initial commit for the Bloody MP 50RS to resolve #2579
This commit is contained in:
parent
c2dd179145
commit
da6e790ee6
4 changed files with 55 additions and 12 deletions
|
|
@ -9,10 +9,11 @@
|
|||
|
||||
#include "BloodyMouseController.h"
|
||||
|
||||
BloodyMouseController::BloodyMouseController(hid_device* dev_handle, const char* path)
|
||||
BloodyMouseController::BloodyMouseController(hid_device* dev_handle, const char* path, uint16_t product_id)
|
||||
{
|
||||
dev = dev_handle;
|
||||
location = path;
|
||||
pid = product_id;
|
||||
|
||||
InitDevice();
|
||||
}
|
||||
|
|
@ -22,6 +23,11 @@ BloodyMouseController::~BloodyMouseController()
|
|||
hid_close(dev);
|
||||
}
|
||||
|
||||
uint16_t BloodyMouseController::GetPid()
|
||||
{
|
||||
return pid;
|
||||
}
|
||||
|
||||
std::string BloodyMouseController::GetSerial()
|
||||
{
|
||||
const uint8_t sz = HID_MAX_STR;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue