diff options
author | Wim Vriend <facetracknoir@gmail.com> | 2012-09-28 13:40:18 +0000 |
---|---|---|
committer | Wim Vriend <facetracknoir@gmail.com> | 2012-09-28 13:40:18 +0000 |
commit | 75360443eb879b49a72c11b2a3d2d299ca61f9d7 (patch) | |
tree | fdab3ff501710e19f31f63815957a1fe86dbcb88 /FTNoIR_Protocol_PPJOY/FTNoIR_Protocol_PPJOY.h | |
parent | ee53c49af9789553fb51987bd6003ce30344e173 (diff) |
Modified sendHeadposeToGame, so it also sends raw data.
Unified the code by adding the Dll class to the protocols and moving the dialog to a separate source.
git-svn-id: svn+ssh://svn.code.sf.net/p/facetracknoir/code@173 19e81ba0-9b1a-49c3-bd6c-561e1906d5fb
Diffstat (limited to 'FTNoIR_Protocol_PPJOY/FTNoIR_Protocol_PPJOY.h')
-rw-r--r-- | FTNoIR_Protocol_PPJOY/FTNoIR_Protocol_PPJOY.h | 28 |
1 files changed, 18 insertions, 10 deletions
diff --git a/FTNoIR_Protocol_PPJOY/FTNoIR_Protocol_PPJOY.h b/FTNoIR_Protocol_PPJOY/FTNoIR_Protocol_PPJOY.h index 266fd877..b9220916 100644 --- a/FTNoIR_Protocol_PPJOY/FTNoIR_Protocol_PPJOY.h +++ b/FTNoIR_Protocol_PPJOY/FTNoIR_Protocol_PPJOY.h @@ -69,13 +69,9 @@ public: void Initialize();
bool checkServerInstallationOK( HANDLE handle );
- void sendHeadposeToGame( THeadPoseData *headpose );
+ void sendHeadposeToGame( THeadPoseData *headpose, THeadPoseData *rawheadpose );
void getNameFromGame( char *dest ); // Take care dest can handle up to 100 chars...
- void getFullName(QString *strToBeFilled) { *strToBeFilled = QString("PPJoy Virtual Joystick"); };
- void getShortName(QString *strToBeFilled) { *strToBeFilled = QString("PPJoy"); };
- void getDescription(QString *strToBeFilled) { *strToBeFilled = QString("PPJoy virtual joystick protocol"); };
-
private:
HANDLE h;
JOYSTICK_STATE JoyState;
@@ -107,11 +103,6 @@ public: void Release(); // Member functions which are accessible from outside the DLL
void Initialize(QWidget *parent);
- void getFullName(QString *strToBeFilled) { *strToBeFilled = QString("PPJoy Virtual Joystick"); };
- void getShortName(QString *strToBeFilled) { *strToBeFilled = QString("PPJoy"); };
- void getDescription(QString *strToBeFilled) { *strToBeFilled = QString("PPJoy virtual joystick protocol"); };
- void getIcon(QIcon *icon) { *icon = QIcon(":/images/PPJoy.ico"); };
-
private:
Ui::UICPPJOYControls ui;
void loadSettings();
@@ -127,5 +118,22 @@ private slots: void settingChanged() { settingsDirty = true; };
};
+//*******************************************************************************************************
+// FaceTrackNoIR Protocol DLL. Functions used to get general info on the Protocol
+//*******************************************************************************************************
+class FTNoIR_ProtocolDll : public IProtocolDll
+{
+public:
+ FTNoIR_ProtocolDll();
+ ~FTNoIR_ProtocolDll();
+
+ void getFullName(QString *strToBeFilled) { *strToBeFilled = QString("PPJoy Virtual Joystick"); };
+ void getShortName(QString *strToBeFilled) { *strToBeFilled = QString("PPJoy"); };
+ void getDescription(QString *strToBeFilled) { *strToBeFilled = QString("PPJoy virtual joystick protocol"); };
+
+ void getIcon(QIcon *icon) { *icon = QIcon(":/images/PPJoy.ico"); };
+};
+
+
#endif//INCLUDED_PPJOYSERVER_H
//END
|