summaryrefslogtreecommitdiffhomepage
path: root/logic/tracker.h
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/tracker.h
parente2d5245359de0cd419d49b1f3c8e1392c5d9342a (diff)
logic: add extension support
It's missing a dialog and testing.
Diffstat (limited to 'logic/tracker.h')
-rw-r--r--logic/tracker.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/logic/tracker.h b/logic/tracker.h
index afd57112..e7b4a76d 100644
--- a/logic/tracker.h
+++ b/logic/tracker.h
@@ -15,6 +15,7 @@
#include "mappings.hpp"
#include "compat/euler.hpp"
#include "runtime-libraries.hpp"
+#include "extensions.hpp"
#include "spline/spline.hpp"
#include "main-settings.hpp"
@@ -31,7 +32,7 @@
namespace gui_tracker_impl {
-struct bits
+struct OTR_LOGIC_EXPORT bits
{
enum flags : unsigned {
f_center = 1 << 0,
@@ -58,6 +59,7 @@ private:
QMutex mtx;
main_settings s;
Mappings& m;
+ event_handler& ev;
Timer t;
Pose output_pose, raw_6dof, last_mapped, last_raw;
@@ -98,7 +100,7 @@ private:
static constexpr double c_mult = 16;
static constexpr double c_div = 1./c_mult;
public:
- Tracker(Mappings& m, runtime_libraries& libs, TrackLogger& logger);
+ Tracker(Mappings& m, runtime_libraries& libs, event_handler& ev, TrackLogger& logger);
~Tracker();
void raw_and_mapped_pose(double* mapped, double* raw) const;