Events sent by trigger_key_event_EX1 are not received by Simconnect

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.

Hello @some1 I just tried an am receiving this event as expected. Are you
processing the SIMCONNECT_RECV_ID_EVENT _EX1 events in your call dispatch
callback? This id has been added to the SIMCONNECT_RECV_ID enumeration but is
not referenced everywhere in the documentation so you might have missed it and
expect to receive a SIMCONNECT_RECV_ID_EVENT instead? @Nocturne FYI Regards,
Sylvain

Hmm, this may be it, I have indeed missed the existence
SIMCONNECT_RECV_ID_EVENT _EX1 and was using SIMCONNECT_RECV_ID_EVENT.
Thanks for the help.