Add SmartShift Device feature

This commit is contained in:
pixl
2020-07-02 15:27:30 -04:00
parent 5abf777e00
commit 4e33ad7593
7 changed files with 131 additions and 8 deletions
+3 -5
View File
@@ -19,6 +19,7 @@
#include "util/log.h"
#include "features/DPI.h"
#include "Device.h"
#include "features/SmartShift.h"
using namespace logid;
using namespace logid::backend;
@@ -40,11 +41,8 @@ Device::Device(const std::shared_ptr<backend::raw::RawDevice>& raw_device,
void Device::_init()
{
///TODO: Surely there's a better way of doing this
try {
_features.push_back(std::make_shared<features::DPI>(this));
} catch (backend::hidpp20::UnsupportedFeature& e) {
}
_addFeature<features::DPI>();
_addFeature<features::SmartShift>();
for(auto& feature: _features)
feature->configure();