summaryrefslogtreecommitdiffhomepage
path: root/FTNoIR_Protocol_SC
diff options
context:
space:
mode:
Diffstat (limited to 'FTNoIR_Protocol_SC')
-rw-r--r--FTNoIR_Protocol_SC/FTNoIR_Protocol_SC.cpp14
-rw-r--r--FTNoIR_Protocol_SC/FTNoIR_Protocol_SC.h2
2 files changed, 8 insertions, 8 deletions
diff --git a/FTNoIR_Protocol_SC/FTNoIR_Protocol_SC.cpp b/FTNoIR_Protocol_SC/FTNoIR_Protocol_SC.cpp
index 1c3290c6..6c0cf42f 100644
--- a/FTNoIR_Protocol_SC/FTNoIR_Protocol_SC.cpp
+++ b/FTNoIR_Protocol_SC/FTNoIR_Protocol_SC.cpp
@@ -96,16 +96,16 @@ void FTNoIR_Protocol_SC::loadSettings() {
//
// Update Headpose in Game.
//
-void FTNoIR_Protocol_SC::sendHeadposeToGame( T6DOF *headpose ) {
+void FTNoIR_Protocol_SC::sendHeadposeToGame( THeadPoseData *headpose ) {
- virtSCRotX = -1.0f * headpose->position.pitch; // degrees
- virtSCRotY = -1.0f * headpose->position.yaw;
- virtSCRotZ = headpose->position.roll;
+ virtSCRotX = -1.0f * headpose->pitch; // degrees
+ virtSCRotY = -1.0f * headpose->yaw;
+ virtSCRotZ = headpose->roll;
- virtSCPosX = headpose->position.x/100.f; // cm to meters
- virtSCPosY = headpose->position.y/100.f;
- virtSCPosZ = -1.0f * headpose->position.z/100.f;
+ virtSCPosX = headpose->x/100.f; // cm to meters
+ virtSCPosY = headpose->y/100.f;
+ virtSCPosZ = -1.0f * headpose->z/100.f;
//
// It's only useful to send data, if the connection was made.
diff --git a/FTNoIR_Protocol_SC/FTNoIR_Protocol_SC.h b/FTNoIR_Protocol_SC/FTNoIR_Protocol_SC.h
index 33e08838..cf8c3e5c 100644
--- a/FTNoIR_Protocol_SC/FTNoIR_Protocol_SC.h
+++ b/FTNoIR_Protocol_SC/FTNoIR_Protocol_SC.h
@@ -87,7 +87,7 @@ public:
void Initialize();
bool checkServerInstallationOK( HANDLE handle );
- void sendHeadposeToGame( T6DOF *headpose );
+ void sendHeadposeToGame( THeadPoseData *headpose );
void getNameFromGame( char *dest ); // Take care dest can handle up to 100 chars...
void getFullName(QString *strToBeFilled) { *strToBeFilled = QString("FSX SimConnect"); };