From e472979255f531d95e806a7d55a75ea3f222a88b Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 5 Jul 2015 18:55:36 +0200 Subject: simconnect: don't hook on too many events --- ftnoir_protocol_sc/ftnoir_protocol_sc.cpp | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'ftnoir_protocol_sc/ftnoir_protocol_sc.cpp') 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(this))); -- cgit v1.2.3