diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2017-06-07 22:25:26 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2017-06-07 22:25:26 +0200 |
commit | f6d953c6842a6b4777df38f4d957c3516960504c (patch) | |
tree | 19cfbc2acb4fa6b6f04d036a00800b6d4a9944d4 /proto-simconnect/ftnoir_protocol_sc.h | |
parent | fd8d1acd6f095e7bdf56a21a6e3771a36415e400 (diff) |
proto/simconnect: adjust debug messages
Diffstat (limited to 'proto-simconnect/ftnoir_protocol_sc.h')
-rw-r--r-- | proto-simconnect/ftnoir_protocol_sc.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/proto-simconnect/ftnoir_protocol_sc.h b/proto-simconnect/ftnoir_protocol_sc.h index ff664351..270d922d 100644 --- a/proto-simconnect/ftnoir_protocol_sc.h +++ b/proto-simconnect/ftnoir_protocol_sc.h @@ -44,7 +44,12 @@ public: return "FS2004/FSX"; } private: - enum { SIMCONNECT_RECV_ID_EVENT_FRAME = 7 }; + enum { + SIMCONNECT_RECV_ID_NULL, + SIMCONNECT_RECV_ID_EXCEPTION = 2, + SIMCONNECT_RECV_ID_QUIT = 3, + SIMCONNECT_RECV_ID_EVENT_FRAME = 7, + }; #pragma pack(push, 1) struct SIMCONNECT_RECV @@ -64,7 +69,6 @@ private: typedef HRESULT (WINAPI *importSimConnect_SubscribeToSystemEvent)(HANDLE hSimConnect, DWORD EventID, const char * SystemEventName); void run() override; - volatile bool should_stop; volatile float virtSCPosX; volatile float virtSCPosY; @@ -80,6 +84,7 @@ private: importSimConnect_SubscribeToSystemEvent simconnect_subscribetosystemevent; HANDLE hSimConnect; + volatile bool should_stop, should_reconnect; static void CALLBACK processNextSimconnectEvent(SIMCONNECT_RECV* pData, DWORD cbData, void *pContext); settings s; QLibrary SCClientLib; |