Skip to content

Conversation

@rafaellehmkuhl
Copy link
Member

@rafaellehmkuhl rafaellehmkuhl commented Jan 20, 2026

If multiple joysticks connect together, the first one enables message forwarding (if no other GCS is detected) but the second joystick will always disable the forwarding, as it will detect the messages from the first one and the thereWereJoysticksBefore variable was already computed as false. Now it does account for that case correctly.

The artifacts for this fix cherry-picked to 1.17.0 can be found here.

Fix #2346

@rafaellehmkuhl rafaellehmkuhl force-pushed the fix-joystick-multiple-controllers-connecting-together branch from f7cbaf9 to 5ab7026 Compare January 20, 2026 13:20
@rafaellehmkuhl
Copy link
Member Author

@ArturoManzoli I believe you have a Windows machine, right? If so, could you test this PR there? It should be tested by connecting two different joysticks to the computer and then opening Cockpit. It works if the joystick forwarding does not get disabled in the end of the startup. To be tested on Web as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Manual control from other GCS triggered with multiple controllers

1 participant