From 1de2c6cab939b0d887b8d2acc59fe24939df2cfc Mon Sep 17 00:00:00 2001 From: Wim Vriend Date: Wed, 16 Jun 2010 19:03:34 +0000 Subject: Removed repository files thats should not be there git-svn-id: svn+ssh://svn.code.sf.net/p/facetracknoir/code@14 19e81ba0-9b1a-49c3-bd6c-561e1906d5fb --- FaceTrackNoIR/TrackIR.h | 46 ---------------------------------------------- 1 file changed, 46 deletions(-) delete mode 100644 FaceTrackNoIR/TrackIR.h (limited to 'FaceTrackNoIR/TrackIR.h') diff --git a/FaceTrackNoIR/TrackIR.h b/FaceTrackNoIR/TrackIR.h deleted file mode 100644 index 81df17c7..00000000 --- a/FaceTrackNoIR/TrackIR.h +++ /dev/null @@ -1,46 +0,0 @@ -// Retro 26/09/03 - -//#define DEBUG_TRACKIR_STUFF - -class TrackIR { -public: - TrackIR() - { FrameSignature = missedFrameCount = Pit_2d_Yaw = Pit_2d_Yaw = 0; - panningAllowed = isActive = true; - yaw = pitch = roll = x = y = z = 0; - }; - ~TrackIR() {}; - - void InitTrackIR(HWND); - void ExitTrackIR(); - - void Allow_2D_Panning() { panningAllowed = true; } - bool Get_Panning_Allowed() { return panningAllowed; } - - void GetTrackIR_ViewValues(float*, float*); // for 3d cockpit panning, gets yaw/pitch values in radians - int TrackIR_2D_Map(); // for 2d cockpit panning, returns POV_N, POV_S, POV_E, POV_W values, -1 for neutral - - float getYaw() { return yaw; } - float getPitch() { return pitch; } - float getRoll() { return roll; } - float getX() { return x; } - float getY() { return y; } - float getZ() { return z;} - - void Poll(); - -private: - unsigned long FrameSignature; - unsigned long missedFrameCount; - - bool panningAllowed; - - bool isActive; // flag indicating if the TIR receives updates.. eg when the user hits F9 (stop TIR) then this one gets false after - // a set time of frames (100 for now). This is used to give control back to keyboard/mouse in case tir is switched off - // ONLY FOR THE 3d PIT THOUGHT - 2D pit just returns -1 ("donīt pan") - - int Pit_2d_Yaw; - int Pit_2d_Pitch; - - float yaw, pitch, roll, x, y, z; -}; -- cgit v1.2.3