Fixes so that P3D code compiles on Win32 (FSX)

This commit is contained in:
Klaus Basan
2018-06-25 12:29:55 +02:00
parent f4d40b2d39
commit 7a4f723fc0
2 changed files with 21 additions and 0 deletions

View File

@@ -10,4 +10,14 @@
#include <windows.h>
#include <SimConnect.h>
#ifndef Q_OS_WIN64
//! adding struct SIMCONNECT_DATA_PBH not existing in SimConnect FSX
struct SIMCONNECT_DATA_PBH
{
double Pitch; //!< pitch
double Bank; //!< bank
double Heading; //!< heading
};
#endif
#endif // guard

View File

@@ -184,6 +184,17 @@ namespace BlackSimPlugin
return hr;
}
#else
bool CSimulatorP3D::followAircraft(const CCallsign &callsign)
{
Q_UNUSED(callsign);
return false;
}
HRESULT CSimulatorP3D::initEventsP3D()
{
return S_OK;
}
void CSimulatorP3D::SimConnectProc(SIMCONNECT_RECV *pData, DWORD cbData, void *pContext)
{
CSimulatorFsxCommon::SimConnectProc(pData, cbData, pContext);