summaryrefslogtreecommitdiffhomepage
path: root/opentrack
diff options
context:
space:
mode:
Diffstat (limited to 'opentrack')
-rw-r--r--opentrack/main-settings.hpp2
-rw-r--r--opentrack/options.hpp2
-rw-r--r--opentrack/selected-libraries.cpp6
-rw-r--r--opentrack/selected-libraries.hpp2
-rw-r--r--opentrack/tracker.cpp2
5 files changed, 6 insertions, 8 deletions
diff --git a/opentrack/main-settings.hpp b/opentrack/main-settings.hpp
index 250d4563..f47b3873 100644
--- a/opentrack/main-settings.hpp
+++ b/opentrack/main-settings.hpp
@@ -7,11 +7,9 @@
using namespace options;
struct axis_opts {
- value<double> zero;
value<bool> invert, altp;
value<int> src;
axis_opts(pbundle b, QString pfx, int idx) :
- zero(b, n(pfx, "zero-pos"), 0),
invert(b, n(pfx, "invert-sign"), false),
altp(b, n(pfx, "alt-axis-sign"), false),
src(b, n(pfx, "source-index"), idx)
diff --git a/opentrack/options.hpp b/opentrack/options.hpp
index 5511f567..3d2f0f9b 100644
--- a/opentrack/options.hpp
+++ b/opentrack/options.hpp
@@ -98,7 +98,7 @@ namespace options {
}
conf.endGroup();
}
- static constexpr const char* org = "opentrack-2.3";
+ static constexpr const char* org = "trackhat opentrack-2.3";
void save()
{
diff --git a/opentrack/selected-libraries.cpp b/opentrack/selected-libraries.cpp
index 8cb226c8..d76c0111 100644
--- a/opentrack/selected-libraries.cpp
+++ b/opentrack/selected-libraries.cpp
@@ -14,15 +14,15 @@ static mem<t> make_instance(mem<dylib> lib)
return ret;
}
-SelectedLibraries::SelectedLibraries(QFrame* frame, dylibptr t, dylibptr p, dylibptr f) :
+SelectedLibraries::SelectedLibraries(QFrame* frame, mem<ITracker> t, dylibptr p, mem<IFilter> f) :
pTracker(nullptr),
pFilter(nullptr),
pProtocol(nullptr),
correct(false)
{
- pTracker = make_instance<ITracker>(t);
+ pTracker = t;
pProtocol = make_instance<IProtocol>(p);
- pFilter = make_instance<IFilter>(f);
+ pFilter = f;
if (!pTracker || !pProtocol)
{
diff --git a/opentrack/selected-libraries.hpp b/opentrack/selected-libraries.hpp
index ffaf882c..07ea419b 100644
--- a/opentrack/selected-libraries.hpp
+++ b/opentrack/selected-libraries.hpp
@@ -8,7 +8,7 @@ struct SelectedLibraries {
mem<ITracker> pTracker;
mem<IFilter> pFilter;
mem<IProtocol> pProtocol;
- SelectedLibraries(QFrame* frame, dylibptr t, dylibptr p, dylibptr f);
+ SelectedLibraries(QFrame* frame, mem<ITracker> t, dylibptr p, mem<IFilter> f);
SelectedLibraries() : pTracker(nullptr), pFilter(nullptr), pProtocol(nullptr), correct(false) {}
~SelectedLibraries();
bool correct;
diff --git a/opentrack/tracker.cpp b/opentrack/tracker.cpp
index c124111f..e39e54dd 100644
--- a/opentrack/tracker.cpp
+++ b/opentrack/tracker.cpp
@@ -47,7 +47,7 @@ double Tracker::map(double pos, Mapping& axis)
axis.curve.setTrackingActive( !altp );
axis.curveAlt.setTrackingActive( altp );
auto& fc = altp ? axis.curveAlt : axis.curve;
- return fc.getValue(pos) + axis.opts.zero;
+ return fc.getValue(pos);
}
void Tracker::t_compensate(const rmat& rmat, const double* xyz, double* output, bool rz)