summaryrefslogtreecommitdiffhomepage
path: root/opentrack-logic
diff options
context:
space:
mode:
Diffstat (limited to 'opentrack-logic')
-rw-r--r--opentrack-logic/dinput.hpp3
-rw-r--r--opentrack-logic/state.hpp6
2 files changed, 6 insertions, 3 deletions
diff --git a/opentrack-logic/dinput.hpp b/opentrack-logic/dinput.hpp
index 9300f39f..205fc656 100644
--- a/opentrack-logic/dinput.hpp
+++ b/opentrack-logic/dinput.hpp
@@ -5,10 +5,11 @@
#ifndef DIRECTINPUT_VERSION
# define DIRECTINPUT_VERSION 0x800
#endif
+#include "export.hpp"
#include <dinput.h>
#include <windows.h>
-struct dinput_handle final
+struct OPENTRACK_LOGIC_EXPORT dinput_handle final
{
using di_t = LPDIRECTINPUT8;
private:
diff --git a/opentrack-logic/state.hpp b/opentrack-logic/state.hpp
index 7e9d10cb..1c608f7a 100644
--- a/opentrack-logic/state.hpp
+++ b/opentrack-logic/state.hpp
@@ -8,7 +8,6 @@
#pragma once
-#include <vector>
#include "opentrack-compat/options.hpp"
using namespace options;
#include "opentrack/plugin-support.hpp"
@@ -16,10 +15,13 @@ using namespace options;
#include "mappings.hpp"
#include "selected-libraries.hpp"
#include "work.hpp"
+#include <vector>
+#include <QString>
struct State
{
- State() :
+ State(const QString& library_path) :
+ modules(library_path),
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;