summaryrefslogtreecommitdiffhomepage
path: root/FaceTrackNoIR/FTIRServer.cpp
diff options
context:
space:
mode:
authorWim Vriend <facetracknoir@gmail.com>2010-11-26 19:55:00 +0000
committerWim Vriend <facetracknoir@gmail.com>2010-11-26 19:55:00 +0000
commit4c04337f46470180312812634beb0e39a04bcf9f (patch)
tree4cc03adabe80bf576f396659f2bef52046e30597 /FaceTrackNoIR/FTIRServer.cpp
parentab77b86507c65c56ec8aeda181bb43cc96cebc18 (diff)
Changed update-sequence for FSX and FS2004. No data is written, if the headpose-data has not changed. This way, it is possible to use the HAT-switch, if tracking is OFF.
The FTIRServer now also starts the dummy TrackIR.exe process, which is required by some clients, like EZCA. git-svn-id: svn+ssh://svn.code.sf.net/p/facetracknoir/code@29 19e81ba0-9b1a-49c3-bd6c-561e1906d5fb
Diffstat (limited to 'FaceTrackNoIR/FTIRServer.cpp')
-rw-r--r--FaceTrackNoIR/FTIRServer.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/FaceTrackNoIR/FTIRServer.cpp b/FaceTrackNoIR/FTIRServer.cpp
index 1de4ee87..5c4369b3 100644
--- a/FaceTrackNoIR/FTIRServer.cpp
+++ b/FaceTrackNoIR/FTIRServer.cpp
@@ -64,6 +64,13 @@ FTIRServer::~FTIRServer() {
FTIRClientLib.unload();
FTIRViewsLib.unload();
+ //
+ // Kill the dummy TrackIR process.
+ //
+ if (dummyTrackIR) {
+ dummyTrackIR->kill();
+ }
+
//terminates the QThread and waits for finishing the QThread
terminate();
wait();
@@ -274,6 +281,15 @@ bool FTIRServer::FTIRCheckClientDLL()
FTIRViewsLib.load();
}
+ //
+ // Start TrackIR.exe, also to support some older games and EZCA
+ // Some TrackIR clients check if a process called TrackIR.exe is running.
+ // This should do the trick
+ //
+ QString program = "TrackIR.exe";
+ dummyTrackIR = new QProcess(this);
+ dummyTrackIR->start(program);
+
} catch(...) {
settings.~QSettings();
}