Enhanced API to access all aircraft state and trigger all cockpit functions

Totally agreed. For “serious” simmers investment on hardware goes a long way, and the frustration of not being able to map controls really subtract from immersion. It is the thing I like the most on DCS: EVERY switch, action, button, lever, knob that can be accessed via mouse is also in the control list to be mapped… so it IS possible even on much more complex aircraft, please make it happen also on MSFS planes

1 Like

One new thing in '24 is that apparently we can now set and read B vars (Input Events) via RPN calculator code from standalone WASM modules (execute_calculator_code() Gauge API). That includes “setting”/triggering the different suffix variants like “_Inc”, “_Toggle”, etc., which we can’t do with SimConnect.

In '20 this was only possible from gauge modules, not standalone ones. Though there has been no official word about it (not even a mention in any release notes that anyone can find), and in fact they officially deprecated the whole Gauge API w/out providing any alternative for running RPN code (it still works, just, you know, “deprecated”). It’s possible this isn’t even intentional or could cause random puppies to suddenly keel over. :person_shrugging:

I wouldn’t have known about it except for this thread on the dev forums (about one that doesn’t work, ironically). Tried it with some others and it worked.
https://devsupport.flightsimulator.com/t/some-inputevents-dont-work-when-sent-via-execute-calculator-code/11564

(My WASimModule and the accompanying testing UI is a pretty quick way to play with running RPN remotely and works with '24… links in my forums profile.)