diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2015-07-05 18:55:36 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2015-07-05 18:55:36 +0200 |
commit | e472979255f531d95e806a7d55a75ea3f222a88b (patch) | |
tree | c65de921889aa867ffb75fb53b316a82a0aa981a /ftnoir_protocol_sc/ftnoir_protocol_sc.cpp | |
parent | a474a67b4b4af477be3d4497dfb128546c8261f3 (diff) |
simconnect: don't hook on too many events
Diffstat (limited to 'ftnoir_protocol_sc/ftnoir_protocol_sc.cpp')
-rw-r--r-- | ftnoir_protocol_sc/ftnoir_protocol_sc.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/ftnoir_protocol_sc/ftnoir_protocol_sc.cpp b/ftnoir_protocol_sc/ftnoir_protocol_sc.cpp index f545e89b..762afbfa 100644 --- a/ftnoir_protocol_sc/ftnoir_protocol_sc.cpp +++ b/ftnoir_protocol_sc/ftnoir_protocol_sc.cpp @@ -46,14 +46,13 @@ void FTNoIR_Protocol::run() if (!SUCCEEDED(simconnect_open(&hSimConnect, "FaceTrackNoIR", NULL, 0, 0, 0))) return; -#if 0 - simconnect_subscribetosystemevent(hSimConnect, EVENT_PING, "Frame"); - simconnect_mapclienteventtosimevent(hSimConnect, EVENT_INIT, ""); - simconnect_addclienteventtonotificationgroup(hSimConnect, GROUP0, EVENT_INIT, false); - simconnect_setnotificationgrouppriority(hSimConnect, GROUP0, SIMCONNECT_GROUP_PRIORITY_HIGHEST); -#endif - + simconnect_subscribetosystemevent(hSimConnect, EVENT_PING, "Frame"); + + //simconnect_mapclienteventtosimevent(hSimConnect, EVENT_INIT, ""); + //simconnect_addclienteventtonotificationgroup(hSimConnect, GROUP0, EVENT_INIT, false); + //simconnect_setnotificationgrouppriority(hSimConnect, GROUP0, SIMCONNECT_GROUP_PRIORITY_HIGHEST_MASKABLE); + while (!should_stop) { (void) (simconnect_calldispatch(hSimConnect, processNextSimconnectEvent, reinterpret_cast<void*>(this))); |