Add getFeature function to Device

This commit is contained in:
pixl
2020-07-02 16:04:18 -04:00
parent b445b979d3
commit c382ba1c0b
2 changed files with 24 additions and 6 deletions
+3 -3
View File
@@ -44,11 +44,11 @@ void Device::_init()
logPrintf(INFO, "Device found: %s on %s:%d", name().c_str(),
hidpp20().devicePath().c_str(), _index);
_addFeature<features::DPI>();
_addFeature<features::SmartShift>();
_addFeature<features::DPI>("dpi");
_addFeature<features::SmartShift>("smartshift");
for(auto& feature: _features)
feature->configure();
feature.second->configure();
}
std::string Device::name()