summaryrefslogtreecommitdiffhomepage
path: root/opentrack/tracker.h
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-04-29 09:21:10 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-04-29 09:21:23 +0200
commit3a7011ff73cce39ecacb4c5651c1a2dbda8eb10e (patch)
tree84d21d48998aaacbad9cb27b7e5edf29b0dd1396 /opentrack/tracker.h
parent69cc802722c8264c0fd8b138a298d4820c11f1d8 (diff)
api, main: implement new keybindings
The following keybindings are now implemented: - restart tracking. if not started, starts. - toggle (keep position) while key held - zero (keep zero) while key held The latter two options only work for Windows as libqxt doesn't support them. Closes #291
Diffstat (limited to 'opentrack/tracker.h')
-rwxr-xr-x[-rw-r--r--]opentrack/tracker.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/opentrack/tracker.h b/opentrack/tracker.h
index 36b5cad4..079ce473 100644..100755
--- a/opentrack/tracker.h
+++ b/opentrack/tracker.h
@@ -81,6 +81,8 @@ public:
void get_raw_and_mapped_poses(double* mapped, double* raw) const;
void start() { QThread::start(); }
void toggle_enabled() { qDebug() << "toggle enabled"; enabledp = !enabledp; }
+ void set_toggle(bool value) { qDebug() << "enabled" << value; enabledp = value; }
+ void set_zero(bool value) { qDebug() << "zero" << value; zero_ = value; }
void center() { qDebug() << "toggle center"; centerp = !centerp; }
void zero() { qDebug() << "toggle zero"; zero_ = !zero_; }
};