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

virtuali avatar image
virtuali asked virtuali commented

SimConnect_SetInputGroupPriority not working ?

This is more like a possible bug report, rather than a suggestion.

The SimConnect_SetInputGroupPriority API call is currently reported as "No error", instead of "Working" and in fact, after a couple of tests, it seems it doesn't do anything, no errors but also no effect.

The goal is to be able to temporarily map a key or a joy button, and prevent it from reaching the sim, if the priority is set to SIMCONNECT_GROUP_PRIORITY_HIGHEST_MASKABLE and the client events has been added to the input group with the bMaskable flag enabled.


simconnect
10 |10000 characters needed characters left characters exceeded

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

some1 avatar image
some1 answered

I confirm, the joystick events created with SimConnect_MapInputEventToClientEvent cannot be masked.

10 |10000 characters needed characters left characters exceeded

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,

This is a known issue and our developers will have a look at it.

Regards,
Sylvain

10 |10000 characters needed characters left characters exceeded

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 virtuali commented

Hello @virtuali
Our dev is looking at this but it's a bit more tricky as we're not sure we want to allow people to override all possible inputs and we also have to consider potential conflicts between several third party products.
I'll let you know when I have more info.

Regards,
Sylvain

1 comment
10 |10000 characters needed characters left characters exceeded

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

I think event masking should be possible, for the following reasons:


- It was fully supported in FSX and P3D Simconnect, so developers had years to get accustomed to it, and nothing bad happened, provided they give the ability to redefine their own keys/buttons to prevent conflict between add-on, which almost everybody did.

- If it's not available through Simconnect, developers that really need it WILL jump through every kind of strange and potentially dangerous hoops, like API hooking, to do it anyway, each one using its own methods, which WILL in fact cause far worse problems in the end, that's why it's far better to have one officially documented way to do this, so nobody would have an excuse to do dirty hacks.

1 Like 1 ·

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 4.8 MiB each and 23.8 MiB total.