summaryrefslogtreecommitdiffhomepage
path: root/logic/state.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-10-08 13:45:07 +0200
committerStanislaw Halik <sthalik@misaki.pl>2017-10-08 13:45:07 +0200
commit48503f483f29450eca0f5a33381e0b64ef509d80 (patch)
tree4244f578599044a278f48f09e4f3d33c9c148e2b /logic/state.hpp
parente2d5245359de0cd419d49b1f3c8e1392c5d9342a (diff)
logic: add extension support
It's missing a dialog and testing.
Diffstat (limited to 'logic/state.hpp')
-rw-r--r--logic/state.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/logic/state.hpp b/logic/state.hpp
index 8bef71ad..589de5ff 100644
--- a/logic/state.hpp
+++ b/logic/state.hpp
@@ -13,6 +13,7 @@ using namespace options;
#include "api/plugin-support.hpp"
#include "main-settings.hpp"
#include "mappings.hpp"
+#include "extensions.hpp"
#include "work.hpp"
#include <vector>
#include <QString>
@@ -21,9 +22,11 @@ struct State
{
State(const QString& library_path) :
modules(library_path),
+ ev(modules.extensions()),
pose(std::vector<axis_opts*>{&s.a_x, &s.a_y, &s.a_z, &s.a_yaw, &s.a_pitch, &s.a_roll})
{}
Modules modules;
+ event_handler ev;
main_settings s;
Mappings pose;
std::shared_ptr<Work> work;