summaryrefslogtreecommitdiffhomepage
path: root/FaceTrackNoIR/tracker.h
diff options
context:
space:
mode:
authorWim Vriend <facetracknoir@gmail.com>2011-04-15 17:21:31 +0000
committerWim Vriend <facetracknoir@gmail.com>2011-04-15 17:21:31 +0000
commitf79e3f588e8bb112420da3a3912ee83dc28370c7 (patch)
treeaaca2b9bdfeef403a6ff3fac01de9c342eaf8441 /FaceTrackNoIR/tracker.h
parenta2aae5ea082bf0075f76ca79443de4348cb74f3f (diff)
6DOF
git-svn-id: svn+ssh://svn.code.sf.net/p/facetracknoir/code@75 19e81ba0-9b1a-49c3-bd6c-561e1906d5fb
Diffstat (limited to 'FaceTrackNoIR/tracker.h')
-rw-r--r--FaceTrackNoIR/tracker.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/FaceTrackNoIR/tracker.h b/FaceTrackNoIR/tracker.h
index 3440495f..a46bfa2e 100644
--- a/FaceTrackNoIR/tracker.h
+++ b/FaceTrackNoIR/tracker.h
@@ -35,14 +35,7 @@
#define DIRECTINPUT_VERSION 0x0800
#include <Dinput.h>
-//#include "FTServer.h" // Freetrack-server
-//#include "FGServer.h" // FlightGear-server
-//#include "PPJoyServer.h" // Virtual Joystick
-//#include "FTIRServer.h" // FakeTIR-server
-#include "SCServer.h" // SimConnect-server (for MS Flight Simulator X)
-#include "FSUIPCServer.h" // FSUIPC-server (for MS Flight Simulator 2004)
#include "ExcelServer.h" // Excel-server (for analysing purposes)
-#include "FTNServer.h" // FaceTrackNoIR-server (for client-server)
#include "FTNoIR_cxx_protocolserver.h"
#include "..\ftnoir_tracker_base\FTNoIR_Tracker_base.h"
@@ -88,6 +81,11 @@ enum FTNoIR_Face_Tracker {
FT_FTNOIR = 1
};
+enum FTNoIR_Tracker_Status {
+ TRACKER_OFF = 0,
+ TRACKER_ON = 1
+};
+
class FaceTrackNoIR; // pre-define parent-class to avoid circular includes
//
@@ -179,13 +177,15 @@ private:
static TShortKey CenterKey; // ShortKey to Center headposition
static TShortKey StartStopKey; // ShortKey to Start/stop tracking
- static TShortKey InhibitKey; // ShortKey to one or more axis during tracking
+ static TShortKey InhibitKey; // ShortKey to disable one or more axis during tracking
+ static TShortKey AxisReverseKey; // ShortKey to reverse axis during tracking
// Flags to start/stop/reset tracking
static bool confid; // Tracker data is OK
static bool do_tracking; // Start/stop tracking, using the shortkey
static bool do_center; // Center head-position, using the shortkey
static bool do_inhibit; // Inhibit DOF-axis, using the shortkey
+ static bool do_axis_reverse; // Axis reverse, using the shortkey
static HANDLE hTrackMutex; // Prevent reading/writing the headpose simultaneously
@@ -195,7 +195,6 @@ private:
FaceTrackNoIR *mainApp;
- QSharedPointer<ProtocolServerBase> server_Game; // Protocol Server to communicate headpose-data to the Game!
QSharedPointer<ProtocolServerBase> debug_Client; // Protocol Server to log debug-data
protected:
@@ -214,7 +213,8 @@ public:
void loadSettings(); // Load settings from the INI-file
bool isShortKeyPressed( TShortKey *key, BYTE *keystate );
-// QSharedPointer<EngineBase> getEngine() { return _engine; };
+ static bool getTrackingActive() { return do_tracking; }
+ static bool getAxisReverse() { return do_axis_reverse; }
static bool getConfid() { return confid; }