diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2014-11-29 12:25:27 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2014-11-29 12:25:27 +0100 |
commit | e7d57ba055627e6b6c8f6de61a497894e0caa658 (patch) | |
tree | 1ffe7924840380d3404e2a80d31623428925f5ec /opentrack/tracker.h | |
parent | 8a87e1a658f04eaffa10da30f019a64902f8d917 (diff) |
implement zero shortcut
Diffstat (limited to 'opentrack/tracker.h')
-rw-r--r-- | opentrack/tracker.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/opentrack/tracker.h b/opentrack/tracker.h index 84202635..bf0047b4 100644 --- a/opentrack/tracker.h +++ b/opentrack/tracker.h @@ -29,6 +29,7 @@ private: double newpose[6]; std::atomic<bool> centerp; std::atomic<bool> enabledp; + std::atomic<bool> zero_; std::atomic<bool> should_quit; SelectedLibraries const& libs; @@ -48,4 +49,5 @@ public: void start() { QThread::start(); } void toggle_enabled() { enabledp.store(!enabledp.load()); } void center() { centerp.store(!centerp.load()); } + void zero() { zero_.store(!zero_.load()); } }; |