summaryrefslogtreecommitdiffhomepage
path: root/FaceTrackNoIR/tracker.cpp
diff options
context:
space:
mode:
authorWim Vriend <facetracknoir@gmail.com>2010-10-23 15:36:16 +0000
committerWim Vriend <facetracknoir@gmail.com>2010-10-23 15:36:16 +0000
commitf3e5ceffbceaf6f9931ad2ac6bad69732d37dd4c (patch)
tree9e519a8db95212147076d1e14225ca831b34918b /FaceTrackNoIR/tracker.cpp
parent4b7af2d35be630472daadf3b85f289603a7092ad (diff)
Built in support of TIRViews.
Older games like CFS3 require this to be in the program-folder. git-svn-id: svn+ssh://svn.code.sf.net/p/facetracknoir/code@25 19e81ba0-9b1a-49c3-bd6c-561e1906d5fb
Diffstat (limited to 'FaceTrackNoIR/tracker.cpp')
-rw-r--r--FaceTrackNoIR/tracker.cpp13
1 files changed, 5 insertions, 8 deletions
diff --git a/FaceTrackNoIR/tracker.cpp b/FaceTrackNoIR/tracker.cpp
index 374b45b2..4c6d619b 100644
--- a/FaceTrackNoIR/tracker.cpp
+++ b/FaceTrackNoIR/tracker.cpp
@@ -262,7 +262,7 @@ void Tracker::setup(QWidget *head, FaceTrackNoIR *parent) {
server_FSUIPC->start(); // Start the thread
}
else {
- QMessageBox::information(mainApp, "FaceTrackNoIR error", "FSUIPC is not (correctly) installed!");
+ QMessageBox::information(mainApp, "FaceTrackNoIR error", "FSUIPC is not (correctly) installed!\nIt should be placed in the Modules folder of FS!");
}
}
@@ -340,13 +340,7 @@ void Tracker::run() {
}
else {
//
- // Check the state of the BACK key (= Start/Stop tracking) and EQUALS key (= Center)
- //
- if ( isShortKeyPressed( &CenterKey, &keystate[0] ) ) {
- qDebug() << "Tracker::run Shortkey Center pressed!" << GetLastError();
- }
- //
- // Check the state of the BACK key (= Start/Stop tracking) and EQUALS key (= Center)
+ // Check the state of the Start/Stop key
//
if ( isShortKeyPressed( &StartStopKey, &keystate[0] ) && (!lastBackKey) ) {
Tracker::do_tracking = !Tracker::do_tracking;
@@ -382,6 +376,9 @@ void Tracker::run() {
}
lastBackKey = isShortKeyPressed( &StartStopKey, &keystate[0] ); // Remember
+ //
+ // Check the state of the Center key
+ //
if ( isShortKeyPressed( &CenterKey, &keystate[0] ) && (!lastEqualsKey) ) {
Tracker::do_center = true;
qDebug() << "Tracker::run() says Center pressed";