summaryrefslogtreecommitdiffhomepage
path: root/FaceTrackNoIR/tracker.h
diff options
context:
space:
mode:
authorWim Vriend <facetracknoir@gmail.com>2010-09-23 07:10:44 +0000
committerWim Vriend <facetracknoir@gmail.com>2010-09-23 07:10:44 +0000
commit511b934a97dc7f9765270de69864c7132e1c5b24 (patch)
tree25b3dcb29b88750140e4bee729a84739c8f96835 /FaceTrackNoIR/tracker.h
parentd7021ddf3145e1296236d16d5e845d4c9fa9376a (diff)
Done clean-up after switch to VS2005
git-svn-id: svn+ssh://svn.code.sf.net/p/facetracknoir/code@17 19e81ba0-9b1a-49c3-bd6c-561e1906d5fb
Diffstat (limited to 'FaceTrackNoIR/tracker.h')
-rw-r--r--FaceTrackNoIR/tracker.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/FaceTrackNoIR/tracker.h b/FaceTrackNoIR/tracker.h
index b535324f..0b0abe7f 100644
--- a/FaceTrackNoIR/tracker.h
+++ b/FaceTrackNoIR/tracker.h
@@ -83,6 +83,16 @@ struct THeadPoseDOF {
float prevRawPos; // Previous Raw Position
};
+//
+// Structure to hold keycode and CTRL, SHIFT, ALT for shortkeys
+//
+struct TShortKey {
+ BYTE keycode; // Required Key
+ bool shift; // Modifiers to examine
+ bool ctrl;
+ bool alt;
+};
+
class Tracker : public QThread {
Q_OBJECT
@@ -114,6 +124,9 @@ private:
static THeadPoseDOF Y; // Head-movement Y-direction (Up/Down)
static THeadPoseDOF Z; // Head-movement Z-direction (To/From camera)
+ static TShortKey CenterKey; // ShortKey to Center headposition
+ static TShortKey StartStopKey; // ShortKey to Start/stop tracking
+
// Flags to start/stop/reset tracking
static bool confid; // Tracker data is OK
static bool set_initial; // initial headpose is set
@@ -153,6 +166,8 @@ public:
void registerHeadPoseCallback();
bool handleGameCommand ( int command );
QString getGameProgramName(); // Get the ProgramName from the game and display it.
+ void loadSettings(); // Load settings from the INI-file
+ bool isShortKeyPressed( TShortKey *key, BYTE *keystate );
QSharedPointer<EngineBase> getEngine() { return _engine; };
// smEngineHandle getEngineHandle() { return _engine->handle(); };