SimConnect_EnumerateInputEvents returns an exception on the PMDG 737-800

Version: 1.8.10.0

Frequency: Consistently

Severity: Blocker (in the sense that there is no workaround)

Marketplace package name: N/A

Context: SimConnect SimConnect_EnumerateInputEvents

Similar MSFS 2020 issue: None. No Exception in MSFS 2020 version 1.39.12.0.

Bug description:

After calling SimConnect_EnumerateInputEvents I get events returned for most aircraft, but an exception if the PMDG 737 is loaded. When running MSFS 2020 I get a single but empty response message.

Repro steps:
Try the attached program, and run it with the “events” CLI argument. This will call listInputEvents which in turn calls SimConnect_EnumerateInputEvents, and then process messages until one arrives with (msg.dwEntryNumber + 1) >= msg.dwOutOf. With 2024 no such message ever arrives, just the exception.

Attachments:
main.cpp (12.5 KB)

Private attachments: N/A

1 Like

Hello @BenkeiBuddy

I think this is the expected behavior because the PMDG 737 does not appear to rely on Input Events. They likely have implemented their own lower level system using MouseRect template directly.
This can also be seen through the Behaviors debug tool that shows no InputEvent tab when their SimObject is selected.

In that case, there is no possible fix on our side.

I will still log a bug for this, as I’d prefer SimConnect to return something a bit more explicit than the generic SimConnect exception.

Regards,
Sylvain

Hmmm, and just returning an empty list, as happens in 2020? That way you correctly return “no applicable events”. Don’t forget, an exception should only happen for things that are seriously wrong on the calling program’s side, and the call is valid. It’s just that there is nothing to return…

Bert

1 Like

Fair enough, I’ll forward the suggestion