diff options
author | Wim Vriend <facetracknoir@gmail.com> | 2011-04-07 17:43:13 +0000 |
---|---|---|
committer | Wim Vriend <facetracknoir@gmail.com> | 2011-04-07 17:43:13 +0000 |
commit | b07a116670236fe13262f04d618b11460f4e4b73 (patch) | |
tree | 258015e8ec608a456ed2ac395c634d208c28f902 /FTNoIR_Protocol_FT/FTTypes.h | |
parent | ee1e90c6e0eba92b69cdeb2dffb3a246d006dda1 (diff) |
PPJoy in DLL
git-svn-id: svn+ssh://svn.code.sf.net/p/facetracknoir/code@64 19e81ba0-9b1a-49c3-bd6c-561e1906d5fb
Diffstat (limited to 'FTNoIR_Protocol_FT/FTTypes.h')
-rw-r--r-- | FTNoIR_Protocol_FT/FTTypes.h | 85 |
1 files changed, 85 insertions, 0 deletions
diff --git a/FTNoIR_Protocol_FT/FTTypes.h b/FTNoIR_Protocol_FT/FTTypes.h new file mode 100644 index 00000000..a6dcb6c9 --- /dev/null +++ b/FTNoIR_Protocol_FT/FTTypes.h @@ -0,0 +1,85 @@ +/********************************************************************************
+* FTTypes FTTypes contains th specific type definitions for the *
+* FreeTrack protocol. *
+* It was loosely translated from FTTypes.pas *
+* which was created by the FreeTrack-team. *
+* *
+* Copyright (C) 2010 Wim Vriend (Developing) *
+* Ron Hendriks (Testing and Research) *
+* *
+* Homepage <http://www.free-track.net> *
+* *
+* This program is free software; you can redistribute it and/or modify it *
+* under the terms of the GNU General Public License as published by the *
+* Free Software Foundation; either version 3 of the License, or (at your *
+* option) any later version. *
+* *
+* This program is distributed in the hope that it will be useful, but *
+* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY *
+* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for *
+* more details. *
+* *
+* You should have received a copy of the GNU General Public License along *
+* with this program; if not, see <http://www.gnu.org/licenses/>. *
+* *
+* We would like to extend our grattitude to the creators of SweetSpotter, *
+* which has become the basis of this program: "Great work guys!" *
+********************************************************************************/
+#pragma once
+#ifndef INCLUDED_FTTYPES_H
+#define INCLUDED_FTTYPES_H
+
+#include "Windows.h"
+#include <tchar.h>
+#include <stdio.h>
+
+//#include "Registry.h"
+
+// static const char* FT_CLIENT_LOCATION = "Software\\Freetrack\\FreetrackClient";
+ static const char* FT_CLIENT_FILENAME = "FreeTrackClient.Dll";
+ static const char* FT_MM_DATA = "FT_SharedMem";
+ static const char* FREETRACK = "Freetrack";
+ static const char* FREETRACK_MUTEX = "FT_Mutext";
+ static const char* FT_PROGRAMID = "FT_ProgramID";
+
+
+struct TFreeTrackData {
+ int DataID;
+ int CamWidth;
+ int CamHeight;
+ // virtual pose
+ float Yaw; // positive yaw to the left
+ float Pitch; // positive pitch up
+ float Roll; // positive roll to the left
+ float X;
+ float Y;
+ float Z;
+ // raw pose with no smoothing, sensitivity, response curve etc.
+ float RawYaw;
+ float RawPitch;
+ float RawRoll;
+ float RawX;
+ float RawY;
+ float RawZ;
+ // raw points, sorted by Y, origin top left corner
+ float X1;
+ float Y1;
+ float X2;
+ float Y2;
+ float X3;
+ float Y3;
+ float X4;
+ float Y4;
+};
+typedef TFreeTrackData * PFreetrackData;
+
+struct FTMemMap {
+ TFreeTrackData data;
+ HANDLE handle;
+ char ProgramName[100];
+};
+typedef FTMemMap * PFTMemMap;
+
+extern bool (*FTGetData) (PFreetrackData data);
+
+#endif//INCLUDED_FTTYPES_H
|