mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-17 19:05:31 +08:00
Fixes so that P3D code compiles on Win32 (FSX)
This commit is contained in:
@@ -10,4 +10,14 @@
|
|||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <SimConnect.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
|
#endif // guard
|
||||||
|
|||||||
@@ -184,6 +184,17 @@ namespace BlackSimPlugin
|
|||||||
return hr;
|
return hr;
|
||||||
}
|
}
|
||||||
#else
|
#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)
|
void CSimulatorP3D::SimConnectProc(SIMCONNECT_RECV *pData, DWORD cbData, void *pContext)
|
||||||
{
|
{
|
||||||
CSimulatorFsxCommon::SimConnectProc(pData, cbData, pContext);
|
CSimulatorFsxCommon::SimConnectProc(pData, cbData, pContext);
|
||||||
|
|||||||
Reference in New Issue
Block a user