Rewrite logid::DeviceMonitor
This commit is contained in:
0
src/logid/backend/dj/ReceiverMonitor.cpp
Normal file
0
src/logid/backend/dj/ReceiverMonitor.cpp
Normal file
6
src/logid/backend/dj/ReceiverMonitor.h
Normal file
6
src/logid/backend/dj/ReceiverMonitor.h
Normal file
@@ -0,0 +1,6 @@
|
||||
#ifndef LOGID_BACKEND_DJ_RECEIVERMONITOR_H
|
||||
#define LOGID_BACKEND_DJ_RECEIVERMONITOR_H
|
||||
|
||||
|
||||
|
||||
#endif //LOGID_BACKEND_DJ_RECEIVERMONITOR_H
|
@@ -5,6 +5,18 @@
|
||||
|
||||
using namespace logid::backend::hidpp20;
|
||||
|
||||
Device::Device(std::string path, hidpp::DeviceIndex index)
|
||||
: hidpp::Device(path, index)
|
||||
{
|
||||
assert(std::get<0>(version()) >= 2);
|
||||
}
|
||||
|
||||
Device::Device(std::shared_ptr<raw::RawDevice> raw_device, hidpp::DeviceIndex index)
|
||||
: hidpp::Device(raw_device, index)
|
||||
{
|
||||
assert(std::get<0>(version()) >= 2);
|
||||
}
|
||||
|
||||
std::vector<uint8_t> Device::callFunction(uint8_t feature_index,
|
||||
uint8_t function, std::vector<uint8_t>& params)
|
||||
{
|
||||
|
@@ -10,6 +10,9 @@ namespace hidpp20 {
|
||||
class Device : public hidpp::Device
|
||||
{
|
||||
public:
|
||||
Device(std::string path, hidpp::DeviceIndex index);
|
||||
Device(std::shared_ptr<raw::RawDevice> raw_device, hidpp::DeviceIndex index);
|
||||
|
||||
std::vector<uint8_t> callFunction(uint8_t feature_index,
|
||||
uint8_t function,
|
||||
std::vector<uint8_t>& params);
|
||||
|
Reference in New Issue
Block a user