diff options
author | Wim Vriend <facetracknoir@gmail.com> | 2013-02-01 12:38:35 +0000 |
---|---|---|
committer | Wim Vriend <facetracknoir@gmail.com> | 2013-02-01 12:38:35 +0000 |
commit | 16c527ee66123ed29ca2d6c0c6baae6e113eda40 (patch) | |
tree | e81fad86fac687cd1afdac8061aadf063532366b /FTNoIR_Protocol_FT/FTNoIR_Protocol_FT.h | |
parent | 1fc41fd775df78649ecd8e97b6722ed94c322d95 (diff) |
Updated to FreeTrack 2.0
git-svn-id: svn+ssh://svn.code.sf.net/p/facetracknoir/code@258 19e81ba0-9b1a-49c3-bd6c-561e1906d5fb
Diffstat (limited to 'FTNoIR_Protocol_FT/FTNoIR_Protocol_FT.h')
-rw-r--r-- | FTNoIR_Protocol_FT/FTNoIR_Protocol_FT.h | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/FTNoIR_Protocol_FT/FTNoIR_Protocol_FT.h b/FTNoIR_Protocol_FT/FTNoIR_Protocol_FT.h index bd461b1e..12a20ee8 100644 --- a/FTNoIR_Protocol_FT/FTNoIR_Protocol_FT.h +++ b/FTNoIR_Protocol_FT/FTNoIR_Protocol_FT.h @@ -40,7 +40,9 @@ #include "Windows.h"
//#include "math.h"
-typedef char *(WINAPI *importProvider)(void);
+//typedef char *(WINAPI *importProvider)(void);
+typedef void (WINAPI *importTIRViewsStart)(void);
+typedef void (WINAPI *importTIRViewsStop)(void);
class FTNoIR_Protocol : public IProtocol
{
@@ -59,6 +61,9 @@ private: bool FTCreateMapping(HANDLE handle);
void FTDestroyMapping();
+ importTIRViewsStart viewsStart; // Functions inside TIRViews.dll
+ importTIRViewsStop viewsStop;
+
HANDLE hFTMemMap;
FTMemMap *pMemData;
HANDLE hFTMutex;
@@ -68,9 +73,13 @@ private: // Private properties
QString ProgramName;
- QLibrary FTClientLib;
+// QLibrary FTClientLib;
+ QLibrary FTIRViewsLib;
+ QProcess *dummyTrackIR;
+ int intGameID;
float getRadsFromDegrees ( float degrees ) { return (degrees * 0.017453f); }
+ bool getGameData( QString gameID );
void loadSettings();
};
@@ -118,9 +127,9 @@ public: FTNoIR_ProtocolDll();
~FTNoIR_ProtocolDll();
- void getFullName(QString *strToBeFilled) { *strToBeFilled = QString("FreeTrack"); };
- void getShortName(QString *strToBeFilled) { *strToBeFilled = QString("FreeTrack"); };
- void getDescription(QString *strToBeFilled) { *strToBeFilled = QString("FreeTrack protocol"); };
+ void getFullName(QString *strToBeFilled) { *strToBeFilled = QString("FreeTrack 2.0"); };
+ void getShortName(QString *strToBeFilled) { *strToBeFilled = QString("FreeTrack 2.0"); };
+ void getDescription(QString *strToBeFilled) { *strToBeFilled = QString("Enhanced FreeTrack protocol"); };
void getIcon(QIcon *icon) { *icon = QIcon(":/images/Freetrack.ico"); };
};
|