diff options
Diffstat (limited to 'FTNoIR_Protocol_PPJOY')
-rw-r--r-- | FTNoIR_Protocol_PPJOY/FTNoIR_Protocol_PPJOY.cpp | 14 | ||||
-rw-r--r-- | FTNoIR_Protocol_PPJOY/FTNoIR_Protocol_PPJOY.h | 2 |
2 files changed, 8 insertions, 8 deletions
diff --git a/FTNoIR_Protocol_PPJOY/FTNoIR_Protocol_PPJOY.cpp b/FTNoIR_Protocol_PPJOY/FTNoIR_Protocol_PPJOY.cpp index bfecfeb3..f533fdf3 100644 --- a/FTNoIR_Protocol_PPJOY/FTNoIR_Protocol_PPJOY.cpp +++ b/FTNoIR_Protocol_PPJOY/FTNoIR_Protocol_PPJOY.cpp @@ -128,7 +128,7 @@ void FTNoIR_Protocol_PPJOY::loadSettings() { //
// Update Headpose in Game.
//
-void FTNoIR_Protocol_PPJOY::sendHeadposeToGame( T6DOF *headpose ) {
+void FTNoIR_Protocol_PPJOY::sendHeadposeToGame( THeadPoseData *headpose ) {
float virtPosX;
float virtPosY;
float virtPosZ;
@@ -140,13 +140,13 @@ float virtRotZ; //
// Copy the Raw measurements.
//
- virtRotX = headpose->position.pitch;
- virtRotY = headpose->position.yaw;
- virtRotZ = headpose->position.roll;
+ virtRotX = headpose->pitch;
+ virtRotY = headpose->yaw;
+ virtRotZ = headpose->roll;
- virtPosX = headpose->position.x;
- virtPosY = headpose->position.y;
- virtPosZ = headpose->position.z;
+ virtPosX = headpose->x;
+ virtPosY = headpose->y;
+ virtPosZ = headpose->z;
/* Initialise the IOCTL data structure */
JoyState.Signature= JOYSTICK_STATE_V1;
diff --git a/FTNoIR_Protocol_PPJOY/FTNoIR_Protocol_PPJOY.h b/FTNoIR_Protocol_PPJOY/FTNoIR_Protocol_PPJOY.h index 97f064db..266fd877 100644 --- a/FTNoIR_Protocol_PPJOY/FTNoIR_Protocol_PPJOY.h +++ b/FTNoIR_Protocol_PPJOY/FTNoIR_Protocol_PPJOY.h @@ -69,7 +69,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("PPJoy Virtual Joystick"); };
|