How to toggle the selection of countermeasures station passing station index through SIMCONNECT ? I am trying to do like:
Code: Select all
//Mapping to event
hr = SimConnect_MapClientEventToSimEvent(g_hSimConnect, EVENT_ID_COUNTERMEASURE_STATION_8, "COUNTERMEASURE_SYSTEM_STATION_TOGGLE:8");
hr = SimConnect_AddClientEventToNotificationGroup(g_hSimConnect, GROUP_ID_COCKPIT, EVENT_ID_COUNTERMEASURE_STATION_8);
// Setting the event
SimConnect_TransmitClientEvent(g_hSimConnect, 0, EVENT_ID_COUNTERMEASURE_STATION_8, 1, SIMCONNECT_GROUP_PRIORITY_HIGHEST, SIMCONNECT_EVENT_FLAG_GROUPID_IS_PRIORITY);
Manoj S