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

some1 avatar image
some1 asked virtuali commented

SimConnect_MapInputEventToClientEvent bugged, no "UP" event for joystick buttons

For joystick buttons assigned with SimConnect_MapInputEventToClientEvent the UpEventID is never transmitted.

For example for this call:

SimConnect_MapInputEventToClientEvent(hSimConnect, INPUT_0, "joystick:1:button:8", EVENT_REV_1, 0, EVENT_REV_1_RELEASE,0, true);

the EVENT_REV_1 will be transmitted on button press, but the EVENT_REV_1_RELEASE will never be sent.

For comparison, mapping keyboard keys works fine and both events are transmitted in this example

SimConnect_MapInputEventToClientEvent(hSimConnect, INPUT_0, "a", EVENT_REV_1, 0, EVENT_REV_1_RELEASE,0, true);


This was also bugged in FSX but in a different way. In FSX the "down" event was transmitted for a second time on button release. In MSFS, there's nothing, so we can't even implement a workaround.

bug
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 confirmed bug and we are working on a fix for this.
I'll let you know when it's available.
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.

bb8 avatar image
bb8 answered virtuali commented

Hi Guys, any update on this bug? Thanks!


2 comments
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.

Hi bb8,


Our input dev is looking at it at the moment. SU6 is the target for the fix.

Regards,
Sylvain

0 Likes 0 ·
virtuali avatar image virtuali FlyingRaccoon ♦♦ ·
0 Likes 0 ·

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.