Add ChangeDPI action

This commit is contained in:
pixl
2020-07-12 00:34:23 -04:00
parent 949a1ee283
commit b00b4645e4
6 changed files with 191 additions and 7 deletions
+3
View File
@@ -25,6 +25,7 @@
#include "GestureAction.h"
#include "NullAction.h"
#include "CycleDPI.h"
#include "ChangeDPI.h"
using namespace logid;
using namespace logid::actions;
@@ -60,6 +61,8 @@ std::shared_ptr<Action> Action::makeAction(Device *device, libconfig::Setting
return std::make_shared<GestureAction>(device, setting);
else if(type == "cycledpi")
return std::make_shared<CycleDPI>(device, setting);
else if(type == "changedpi")
return std::make_shared<ChangeDPI>(device, setting);
else if(type == "none")
return std::make_shared<NullAction>(device);
else