mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 09:15:34 +08:00
Make FSX works with ISimulatorListener.
SimConnect tries to connect to FSX every 5 seconds. TODO: Use WinAPI to wait for FSX process to show up
This commit is contained in:
committed by
Roland Winklmeier
parent
5b4c2377b6
commit
edc0646ab2
@@ -201,6 +201,25 @@ namespace BlackSimPlugin
|
||||
qint64 m_statsUpdateAircraftTimeAvg = 0;
|
||||
int m_statsUpdateAircraftCount = 0;
|
||||
};
|
||||
|
||||
class CSimulatorFsxListener : public BlackCore::ISimulatorListener {
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
//! Constructor
|
||||
CSimulatorFsxListener(QObject* parent);
|
||||
|
||||
//! \copydoc BlackCore::ISimulatorListener::start
|
||||
virtual void start() override;
|
||||
|
||||
//! \copydoc BlackCore::ISimulatorListener::stop
|
||||
virtual void stop() override;
|
||||
|
||||
private:
|
||||
QTimer* m_timer;
|
||||
const BlackSim::CSimulatorInfo m_simulatorInfo = BlackSim::CSimulatorInfo::FSX();
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
} // namespace BlackCore
|
||||
|
||||
Reference in New Issue
Block a user