Could the JS API be updated to support K events with double Indexes. Theses
new Double Index K events are supported in XML, but currently do not seem to
be supported in JS ? (are they supported in WASM ? ) If they are , what is the
correct format ?? I can find no description or examples in the SDK, or any
current aircraft.
@FlyingRaccoon is there a basic working example of the JS Coherent call using TRIGGER_KEY_EVENT? I spent some time experimenting with trying to do this last week, with no success. I am successfully using JS Coherent calls to intercept key events, but I had no luck in using the same basic JS structure to trigger key events.
I don’t know if we mean the same thing, but in WASM you can actually use
execute_calculator_code to trigger those dual stack K:Events. Not the nicest
of ways for sure, but it works. Greets, Ben
The trigger key events modules only supports 1 parameter. We are asking for
this to support 2, I rather not use execute calculator code, trying to keep
performance at max in my wasm modules. S.
A workaround will be to use SetSimvarValue to set 2x L: variables, and use
these in a model XML “Update” block to drive the intended dual-input K event.
That said, updating the JS functions to support the 2-value K events will be
the best thing.