summaryrefslogtreecommitdiffhomepage
path: root/opentrack
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-10-02 15:14:51 +0200
committerStanislaw Halik <sthalik@misaki.pl>2015-10-02 15:14:51 +0200
commit4117f4c65ef98a0dab2381e6ef6a969fb1be5f14 (patch)
treee7585d4a4674f2cc29536538b679d0c63a7ce97d /opentrack
parent6dd3c13390a69add2c92fb5d69a5ab8367b12e9a (diff)
main: keybinding for "zero" should reset to PERFECTLY forward
Closes #242
Diffstat (limited to 'opentrack')
-rw-r--r--opentrack/tracker.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/opentrack/tracker.cpp b/opentrack/tracker.cpp
index c9e34c2d..3d88a962 100644
--- a/opentrack/tracker.cpp
+++ b/opentrack/tracker.cpp
@@ -165,6 +165,10 @@ void Tracker::logic()
for (int i = 0; i < 6; i++)
value[i] *= inverts[i] ? -1. : 1.;
+ if (zero_)
+ for (int i = 0; i < 6; i++)
+ value(i) = 0;
+
libs.pProtocol->pose(value);
QMutexLocker foo(&mtx);