summaryrefslogtreecommitdiffhomepage
path: root/facetracknoir/facetracknoir.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-10-16 18:30:59 +0200
committerStanislaw Halik <sthalik@misaki.pl>2013-10-16 18:30:59 +0200
commitbb710c8d207337d4d0cc2a6657e954bbc2823e7f (patch)
tree928195af1d8849d96121fde4ae8ea40981109a0e /facetracknoir/facetracknoir.cpp
parent8e988b5a8509cf811ababd8e49ce85aa4afe4da0 (diff)
initial implementation
To-be-reviewed-by: mm0zct
Diffstat (limited to 'facetracknoir/facetracknoir.cpp')
-rw-r--r--facetracknoir/facetracknoir.cpp15
1 files changed, 11 insertions, 4 deletions
diff --git a/facetracknoir/facetracknoir.cpp b/facetracknoir/facetracknoir.cpp
index eb24b320..dddcd4e4 100644
--- a/facetracknoir/facetracknoir.cpp
+++ b/facetracknoir/facetracknoir.cpp
@@ -95,6 +95,7 @@ FaceTrackNoIR::FaceTrackNoIR(QWidget *parent, Qt::WindowFlags flags) :
keybindingWorker(NULL),
#else
keyCenter(0),
+ keyToggle(0),
#endif
timUpdateHeadPose(this),
pTrackerDialog(NULL),
@@ -973,12 +974,18 @@ void FaceTrackNoIR::shortcutRecentered()
{
if (tracker)
{
-#if defined(_WIN32)
- MessageBeep(MB_OK);
-#else
QApplication::beep();
-#endif
qDebug() << "Center";
tracker->do_center = true;
}
}
+
+void FaceTrackNoIR::shortcutToggled()
+{
+ if (tracker)
+ {
+ QApplication::beep();
+ qDebug() << "Toggle";
+ tracker->enabled = !tracker->enabled;
+ }
+}