Add Gesture support
Only supports OnRelease right now. Also, some bugs were spotted while writing this: - Sometimes deadlocks on startup (cause unknown) - Sometimes valid CIDs will be unknown (bug may have been fixed?)
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
#include "KeypressAction.h"
|
||||
#include "ToggleSmartShift.h"
|
||||
#include "ToggleHiresScroll.h"
|
||||
#include "GestureAction.h"
|
||||
|
||||
using namespace logid;
|
||||
using namespace logid::actions;
|
||||
@@ -53,6 +54,8 @@ std::shared_ptr<Action> Action::makeAction(Device *device, libconfig::Setting
|
||||
return std::make_shared<ToggleSmartShift>(device);
|
||||
else if(type == "togglehiresscroll")
|
||||
return std::make_shared<ToggleHiresScroll>(device);
|
||||
else if(type == "gestures")
|
||||
return std::make_shared<GestureAction>(device, setting);
|
||||
else
|
||||
throw InvalidAction(type);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user