mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 00:16:51 +08:00
Fixes so that P3D code compiles on Win32 (FSX)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user