From f3e5ceffbceaf6f9931ad2ac6bad69732d37dd4c Mon Sep 17 00:00:00 2001 From: Wim Vriend Date: Sat, 23 Oct 2010 15:36:16 +0000 Subject: 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 --- FaceTrackNoIR/tracker.cpp | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'FaceTrackNoIR/tracker.cpp') 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"; -- cgit v1.2.3