Hello, if I send an event using trigger_key_event_EX1 like this:
trigger_key_event_EX1(KEY_AUTOPILOT_OFF, 0);
then the other gauge which is using Simconnect does not receive any
notifications:
SimConnect_MapClientEventToSimEvent(hSimConnect, EVENT_AUTOPILOT_OFF, "AUTOPILOT_OFF");
SimConnect_AddClientEventToNotificationGroup(hSimConnect, GROUP_MAIN, EVENT_AUTOPILOT_OFF, FALSE);
Changing the sending code to use the old function:
trigger_key_event(KEY_AUTOPILOT_OFF, 0);
makes the event notifications come in as expected. I’ve also double checked
with FSUIPC, which can log all incoming events to a console thanks to
Simconnect. That program also does not log any events which I’m sending with
trigger_key_event_EX1, even though the simulator itself receives these events
and reacts to them. Since the old trigger_key_event has been marked deprecated
and we’re expected to use trigger_key_event_EX1 for all events from now on,
the existing Simconnect code should be able to receive these events without
any changes. At least the “classic” single-argument events which don’t require
the new _EX1 functions.