plane icon Welcome to Microsoft Flight Simulator’s SDK Q&A Platform!

You have questions regarding the SDK? DevMode Tools? SimConnect? You would like to submit an idea for future improvements, seek help or exchange knowledge? You’re in the right place.


Please take a moment to read the platform’s guidelines before you get started!


question

DA40CGDFQ avatar image
DA40CGDFQ asked FlyingRaccoon answered

[SU9 - SDK update] key events - multiple arguments - WASM and simconnect triggers

SimConnect:

  • Key events that use multiple arguments can now be triggered through WASM & SimConnect.

Per the April 28 blog update - Is there an SDK documentation update to this? Does this mean that what is used in RPN can be somehow emulated in WASM and Simconnect

Keys - these permit you to change the state of a component. Keys can have one or two arguments and are called as follows using the RPN format:

[0] (>K:[key_event_name])
[1] [0] (>K:2:[key_event_name]

Below are two examples, one with a single argument and the other with 2 arguments:

1 (>K:TOGGLE_EXTERNAL_POWER)
50 1 (>K:2:PANEL_LIGHTS_POWER_SETTING_SET)

documentation
10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

EPellissier avatar image
EPellissier answered

Hi there,

The weekly update lists the topics on which the team worked in the previous week, which usually means the mentioned fixes and/or new features will be available in the next SimUpdate.

This is the case for the support of key events that use/require multiple arguments through SimConnect: the work is done but support will be provided through SU10 and its SDK.

I guess we should specify the ETA in this weekly report.

Best regards,

Eric / Asobo

10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

FlyingRaccoon avatar image
FlyingRaccoon answered

Hello @DA40CGDFQ

And to answer your question on the feature itself, yes the goal is to pass multiple parameters when calling events, using the gauge and SimConnect APIs.

Regards,
Sylvain

10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 5 attachments (including images) can be used with a maximum of 19.1 MiB each and 23.8 MiB total.