Add ToggleSmartShift action

This commit is contained in:
pixl
2020-07-08 16:29:20 -04:00
parent bc8f1a983a
commit 77f4240ec7
8 changed files with 133 additions and 2 deletions
+3
View File
@@ -20,6 +20,7 @@
#include "Action.h"
#include "../util/log.h"
#include "KeypressAction.h"
#include "ToggleSmartShift.h"
using namespace logid;
using namespace logid::actions;
@@ -47,6 +48,8 @@ std::shared_ptr<Action> Action::makeAction(Device *device, libconfig::Setting
if(type == "keypress")
return std::make_shared<KeypressAction>(device, setting);
else if(type == "togglesmartshift")
return std::make_shared<ToggleSmartShift>(device, setting);
else
throw InvalidAction(type);