summaryrefslogtreecommitdiffhomepage
path: root/tracker-rift-140/rift-140.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-08-03 07:07:10 +0200
committerStanislaw Halik <sthalik@misaki.pl>2018-08-03 05:07:40 +0000
commitbb7a4fd91a8ad870ca98454141d09ec39b937259 (patch)
treed34fefe2fd67ae37714b902fbdbadb9eed73a412 /tracker-rift-140/rift-140.hpp
parentc09e9d54535dfb08fdb26171a4eaa548a566eba4 (diff)
tracker/rift: remove old yaw spring code
Diffstat (limited to 'tracker-rift-140/rift-140.hpp')
-rw-r--r--tracker-rift-140/rift-140.hpp18
1 files changed, 5 insertions, 13 deletions
diff --git a/tracker-rift-140/rift-140.hpp b/tracker-rift-140/rift-140.hpp
index 4437333b..030addab 100644
--- a/tracker-rift-140/rift-140.hpp
+++ b/tracker-rift-140/rift-140.hpp
@@ -9,14 +9,7 @@
using namespace options;
struct settings : opts {
- value<bool> useYawSpring;
- value<double> constant_drift, persistence, deadzone;
- settings() :
- opts("Rift-140"),
- useYawSpring(b, "yaw-spring", false),
- constant_drift(b, "constant-drift", 0.000005),
- persistence(b, "persistence", 0.99999),
- deadzone(b, "deadzone", 0.02)
+ settings() : opts("Rift-140")
{}
};
@@ -28,7 +21,6 @@ public:
module_status start_tracker(QFrame *) override;
void data(double *data) override;
private:
- double old_yaw = 0;
ovrSession hmd = nullptr;
ovrGraphicsLuid luid {};
settings s;
@@ -40,8 +32,8 @@ class dialog_rift_140: public ITrackerDialog
public:
dialog_rift_140();
- void register_tracker(ITracker *) {}
- void unregister_tracker() {}
+ void register_tracker(ITracker*) override {}
+ void unregister_tracker() override {}
private:
Ui::dialog_rift_140 ui;
@@ -55,7 +47,7 @@ class rift_140Dll : public Metadata
{
Q_OBJECT
- QString name() { return tr("Oculus Rift runtime 1.4.0 -- HMD"); }
- QIcon icon() { return QIcon(":/images/rift_tiny.png"); }
+ QString name() override { return tr("Oculus Rift runtime 1.4.0 -- HMD"); }
+ QIcon icon() override { return QIcon(":/images/rift_tiny.png"); }
};