You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
595 B

#ifndef LOGID_DEVICE_H
#define LOGID_DEVICE_H
#include "backend/hidpp/defs.h"
#include "backend/hidpp20/Device.h"
namespace logid
{
/* TODO: Implement HID++ 1.0 support
* Currently, the logid::Device class has a hardcoded requirement
* for an HID++ 2.0 device.
*/
class Device
{
public:
Device(std::string path, backend::hidpp::DeviceIndex index);
void wakeup();
void sleep();
private:
backend::hidpp20::Device _hidpp20;
std::string _path;
backend::hidpp::DeviceIndex _index;
};
}
#endif //LOGID_DEVICE_H