From 4b7af2d35be630472daadf3b85f289603a7092ad Mon Sep 17 00:00:00 2001 From: Wim Vriend Date: Thu, 21 Oct 2010 16:01:47 +0000 Subject: FSUIPC added git-svn-id: svn+ssh://svn.code.sf.net/p/facetracknoir/code@24 19e81ba0-9b1a-49c3-bd6c-561e1906d5fb --- FaceTrackNoIR/SCServer.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'FaceTrackNoIR/SCServer.h') 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 #include "SimConnect.h" #include #include @@ -39,7 +40,6 @@ #include #include #include -#include 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; } }; -- cgit v1.2.3