summaryrefslogtreecommitdiffhomepage
path: root/opentrack-logic
diff options
context:
space:
mode:
Diffstat (limited to 'opentrack-logic')
-rw-r--r--opentrack-logic/tracker.cpp3
-rw-r--r--opentrack-logic/tracker.h4
-rw-r--r--opentrack-logic/work.hpp8
3 files changed, 7 insertions, 8 deletions
diff --git a/opentrack-logic/tracker.cpp b/opentrack-logic/tracker.cpp
index 2ac04d03..3fb5c6fc 100644
--- a/opentrack-logic/tracker.cpp
+++ b/opentrack-logic/tracker.cpp
@@ -21,8 +21,7 @@
# include <windows.h>
#endif
-Tracker::Tracker(main_settings& s, Mappings &m, SelectedLibraries &libs) :
- s(s),
+Tracker::Tracker(Mappings &m, SelectedLibraries &libs) :
m(m),
newpose {0,0,0, 0,0,0},
centerp(s.center_at_startup),
diff --git a/opentrack-logic/tracker.h b/opentrack-logic/tracker.h
index 591ca03c..dad955c8 100644
--- a/opentrack-logic/tracker.h
+++ b/opentrack-logic/tracker.h
@@ -48,7 +48,7 @@ class OPENTRACK_LOGIC_EXPORT Tracker : private QThread
Q_OBJECT
private:
QMutex mtx;
- main_settings& s;
+ main_settings s;
Mappings& m;
Timer t;
@@ -72,7 +72,7 @@ private:
void t_compensate(const rmat& rmat, const double* ypr, double* output, bool rz);
void run() override;
public:
- Tracker(main_settings& s, Mappings& m, SelectedLibraries& libs);
+ Tracker(Mappings& m, SelectedLibraries& libs);
~Tracker();
void get_raw_and_mapped_poses(double* mapped, double* raw) const;
diff --git a/opentrack-logic/work.hpp b/opentrack-logic/work.hpp
index 2377be5a..37bc58bf 100644
--- a/opentrack-logic/work.hpp
+++ b/opentrack-logic/work.hpp
@@ -22,7 +22,7 @@
struct Work
{
- main_settings& s;
+ main_settings s;
SelectedLibraries& libs;
mem<Tracker> tracker;
mem<Shortcuts> sc;
@@ -31,9 +31,9 @@ struct Work
using tt = std::tuple<key_opts&, fn, bool>;
std::vector<tt> keys;
- Work(main_settings& s, Mappings& m, SelectedLibraries& libs, WId handle) :
- s(s), libs(libs),
- tracker(std::make_shared<Tracker>(s, m, libs)),
+ Work(Mappings& m, SelectedLibraries& libs, WId handle) :
+ libs(libs),
+ tracker(std::make_shared<Tracker>(m, libs)),
sc(std::make_shared<Shortcuts>()),
handle(handle),
keys {