summaryrefslogtreecommitdiffhomepage
path: root/tracker-rift-080/ftnoir_tracker_rift_dialog_080.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tracker-rift-080/ftnoir_tracker_rift_dialog_080.cpp')
-rw-r--r--tracker-rift-080/ftnoir_tracker_rift_dialog_080.cpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/tracker-rift-080/ftnoir_tracker_rift_dialog_080.cpp b/tracker-rift-080/ftnoir_tracker_rift_dialog_080.cpp
new file mode 100644
index 00000000..0bf797be
--- /dev/null
+++ b/tracker-rift-080/ftnoir_tracker_rift_dialog_080.cpp
@@ -0,0 +1,26 @@
+#include "ftnoir_tracker_rift_080.h"
+#include "opentrack/plugin-api.hpp"
+
+TrackerControls::TrackerControls()
+{
+ ui.setupUi( this );
+
+ connect(ui.buttonBox, SIGNAL(accepted()), this, SLOT(doOK()));
+ connect(ui.buttonBox, SIGNAL(rejected()), this, SLOT(doCancel()));
+
+ tie_setting(s.constant_drift, ui.constantDrift);
+ tie_setting(s.deadzone, ui.deadzone);
+ tie_setting(s.persistence, ui.persistence);
+ tie_setting(s.useYawSpring, ui.yawSpring);
+}
+
+void TrackerControls::doOK() {
+ s.b->save();
+ this->close();
+}
+
+void TrackerControls::doCancel() {
+ s.b->reload();
+ close();
+}
+