From 75360443eb879b49a72c11b2a3d2d299ca61f9d7 Mon Sep 17 00:00:00 2001 From: Wim Vriend Date: Fri, 28 Sep 2012 13:40:18 +0000 Subject: 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 --- FTNoIR_Protocol_MOUSE/FTNoIR_Protocol_MOUSE.h | 28 +++++++++++++++++---------- 1 file changed, 18 insertions(+), 10 deletions(-) (limited to 'FTNoIR_Protocol_MOUSE/FTNoIR_Protocol_MOUSE.h') diff --git a/FTNoIR_Protocol_MOUSE/FTNoIR_Protocol_MOUSE.h b/FTNoIR_Protocol_MOUSE/FTNoIR_Protocol_MOUSE.h index c2c16abb..a7915780 100644 --- a/FTNoIR_Protocol_MOUSE/FTNoIR_Protocol_MOUSE.h +++ b/FTNoIR_Protocol_MOUSE/FTNoIR_Protocol_MOUSE.h @@ -70,13 +70,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("Mouse Look"); }; - void getShortName(QString *strToBeFilled) { *strToBeFilled = QString("Mouse Look"); }; - void getDescription(QString *strToBeFilled) { *strToBeFilled = QString("Mouse Look protocol"); }; - private: HANDLE h; INPUT MouseStruct; @@ -113,11 +109,6 @@ public: void Release(); // Member functions which are accessible from outside the DLL void Initialize(QWidget *parent); - void getFullName(QString *strToBeFilled) { *strToBeFilled = QString("Mouse Look"); }; - void getShortName(QString *strToBeFilled) { *strToBeFilled = QString("Mouse Look"); }; - void getDescription(QString *strToBeFilled) { *strToBeFilled = QString("Mouse Look protocol"); }; - void getIcon(QIcon *icon) { *icon = QIcon(":/images/Mouse.ico"); }; - private: Ui::UICMOUSEControls ui; void loadSettings(); @@ -132,5 +123,22 @@ private slots: void settingChanged( int setting ) { 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("Mouse Look"); }; + void getShortName(QString *strToBeFilled) { *strToBeFilled = QString("Mouse Look"); }; + void getDescription(QString *strToBeFilled) { *strToBeFilled = QString("Mouse Look protocol"); }; + + void getIcon(QIcon *icon) { *icon = QIcon(":/images/Mouse.ico"); }; +}; + + #endif//INCLUDED_MOUSESERVER_H //END -- cgit v1.2.3