summaryrefslogtreecommitdiffhomepage
path: root/FaceTrackNoIR/SCServer.h
diff options
context:
space:
mode:
authorWim Vriend <facetracknoir@gmail.com>2010-10-21 16:01:47 +0000
committerWim Vriend <facetracknoir@gmail.com>2010-10-21 16:01:47 +0000
commit4b7af2d35be630472daadf3b85f289603a7092ad (patch)
treea9ad914785b3a20c7d01776b9998907f4e30e2b2 /FaceTrackNoIR/SCServer.h
parentbe9d1d42a340bad458173992b219def3dfed03ae (diff)
FSUIPC added
git-svn-id: svn+ssh://svn.code.sf.net/p/facetracknoir/code@24 19e81ba0-9b1a-49c3-bd6c-561e1906d5fb
Diffstat (limited to 'FaceTrackNoIR/SCServer.h')
-rw-r--r--FaceTrackNoIR/SCServer.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/FaceTrackNoIR/SCServer.h b/FaceTrackNoIR/SCServer.h
index 568cfe77..e694463d 100644
--- a/FaceTrackNoIR/SCServer.h
+++ b/FaceTrackNoIR/SCServer.h
@@ -29,6 +29,7 @@
//
#define SIMCONNECT_H_NOMANIFEST
#include "Windows.h"
+#include <stdlib.h>
#include "SimConnect.h"
#include <QString>
#include <QMessageBox>
@@ -39,7 +40,6 @@
#include <QThread>
#include <QMutex>
#include <QLibrary>
-#include <QUdpSocket>
typedef HRESULT (WINAPI *importSimConnect_Open)(HANDLE * phSimConnect, LPCSTR szName, HWND hWnd, DWORD UserEventWin32, HANDLE hEventHandle, DWORD ConfigIndex);
typedef HRESULT (WINAPI *importSimConnect_Close)(HANDLE hSimConnect);
@@ -84,13 +84,13 @@ public:
static float virtRotY;
static float virtRotZ;
- static void setVirtRotX(float rot) { virtRotX = rot; } // degrees
- static void setVirtRotY(float rot) { virtRotY = rot; }
+ static void setVirtRotX(float rot) { virtRotX = -1.0f * rot; } // degrees
+ static void setVirtRotY(float rot) { virtRotY = -1.0f * rot; }
static void setVirtRotZ(float rot) { virtRotZ = rot; }
- static void setVirtPosX(float pos) { virtPosX = pos/100.f; } // cm to meters
+ static void setVirtPosX(float pos) { virtPosX = pos/100.f; } // cm to meters
static void setVirtPosY(float pos) { virtPosY = pos/100.f; }
- static void setVirtPosZ(float pos) { virtPosZ = pos/100.f; }
+ static void setVirtPosZ(float pos) { virtPosZ = -1.0f * pos/100.f; }
};