mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 07:15:35 +08:00
refs #241 Move CFsuipc into simulator_fscommon
This commit is contained in:
@@ -26,7 +26,7 @@ using namespace BlackMisc::PhysicalQuantities;
|
||||
|
||||
namespace BlackSimPlugin
|
||||
{
|
||||
namespace Fsx
|
||||
namespace FsCommon
|
||||
{
|
||||
|
||||
CFsuipc::CFsuipc() : m_connected(false), m_validReadValues(false)
|
||||
@@ -85,6 +85,11 @@ namespace BlackSimPlugin
|
||||
this->read();
|
||||
}
|
||||
|
||||
void CFsuipc::write()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void CFsuipc::read()
|
||||
{
|
||||
DWORD dwResult;
|
||||
@@ -12,7 +12,7 @@
|
||||
|
||||
namespace BlackSimPlugin
|
||||
{
|
||||
namespace Fsx
|
||||
namespace FsCommon
|
||||
{
|
||||
//! Class representing a FSUIPC "interface"
|
||||
class CFsuipc
|
||||
@@ -37,9 +37,15 @@ namespace BlackSimPlugin
|
||||
//! Valid read values
|
||||
bool validReadValues() const { return m_validReadValues; }
|
||||
|
||||
//! Get own aircraft from FSUIPC
|
||||
const BlackMisc::Aviation::CAircraft &getOwnAircraft() const { return m_aircraft; }
|
||||
|
||||
//! Process reading and writing variables
|
||||
void process();
|
||||
|
||||
//! Write variables
|
||||
void write();
|
||||
|
||||
//! Error messages
|
||||
static const QStringList &errorMessages()
|
||||
{
|
||||
@@ -9,7 +9,7 @@ TEMPLATE = lib
|
||||
CONFIG += plugin shared
|
||||
CONFIG += blackmisc blackcore blacksim
|
||||
|
||||
LIBS += -lSimConnect -lFSUIPC_User
|
||||
LIBS += -lsimulator_fscommon -lSimConnect -lFSUIPC_User
|
||||
|
||||
# required for FSUIPC
|
||||
win32:!win32-g++*: QMAKE_LFLAGS += /NODEFAULTLIB:LIBC.lib
|
||||
@@ -17,6 +17,8 @@ win32:!win32-g++*: QMAKE_LFLAGS += /NODEFAULTLIB:LIBC.lib
|
||||
DEPENDPATH += . ../../../../src
|
||||
INCLUDEPATH += . ../../../../src
|
||||
|
||||
LIBS += -ldxguid -lole32
|
||||
|
||||
SOURCES += *.cpp
|
||||
HEADERS += *.h
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@ namespace BlackSimPlugin
|
||||
m_simulatorInfo(CSimulatorInfo::FSX()),
|
||||
m_simconnectTimerId(-1),
|
||||
m_skipCockpitUpdateCycles(0),
|
||||
m_fsuipc(new CFsuipc())
|
||||
m_fsuipc(new FsCommon::CFsuipc())
|
||||
{
|
||||
CFsxSimulatorSetup setup;
|
||||
setup.init(); // this fetches important settings on local side
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
#include "simconnect_datadefinition.h"
|
||||
#include "simconnect_object.h"
|
||||
#include "fsuipc.h"
|
||||
#include "../fscommon/fsuipc.h"
|
||||
#include "blackcore/simulator.h"
|
||||
#include "blackcore/interpolator_linear.h"
|
||||
#include "blackmisc/avaircraft.h"
|
||||
@@ -218,7 +218,7 @@ namespace BlackSimPlugin
|
||||
int m_simconnectTimerId;
|
||||
int m_skipCockpitUpdateCycles; //!< Skip some update cycles to allow changes in simulator cockpit to be set
|
||||
QFutureWatcher<bool> m_watcherConnect;
|
||||
QScopedPointer<CFsuipc> m_fsuipc;
|
||||
QScopedPointer<FsCommon::CFsuipc> m_fsuipc;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user