diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2015-10-02 15:15:08 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2015-10-02 15:15:08 +0200 |
commit | a457eec3d0cb5fa59f260a1cd569ee42690d912f (patch) | |
tree | f545d91f530f1020911fe7351864c7e7ab3c53f8 /opentrack/tracker.cpp | |
parent | d4fe11d20fb84a3ff781cf3a0d6e18e49f0be280 (diff) | |
parent | 4117f4c65ef98a0dab2381e6ef6a969fb1be5f14 (diff) |
Merge branch 'unstable' into trackhat-ui
* unstable:
main: keybinding for "zero" should reset to PERFECTLY forward
Diffstat (limited to 'opentrack/tracker.cpp')
-rw-r--r-- | opentrack/tracker.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/opentrack/tracker.cpp b/opentrack/tracker.cpp index 58e911bf..88c90032 100644 --- a/opentrack/tracker.cpp +++ b/opentrack/tracker.cpp @@ -162,6 +162,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); |