Skip to content

[WIP] SDL2 on macOS detects joysticks only with SDL2_INIT_VIDEO#302

Open
EliaCereda wants to merge 1 commit intoros-drivers:ros2from
EliaCereda:ros2-macos
Open

[WIP] SDL2 on macOS detects joysticks only with SDL2_INIT_VIDEO#302
EliaCereda wants to merge 1 commit intoros-drivers:ros2from
EliaCereda:ros2-macos

Conversation

@EliaCereda
Copy link
Copy Markdown

SDL2 on macOS seems to have issues detecting joysticks that are already connected at startup (I started a discussion here: libsdl-org/SDL#12886).

I'm opening a PR to share this workaround that seems to make everything work correctly, but it's not a proper fix right now. I'm sure initialising SDL2_INIT_VIDEO is not very desirable, especially not on other platforms, as it prevents the joy node from running headless.

Was this a known issue?

@peci1
Copy link
Copy Markdown
Contributor

peci1 commented Feb 15, 2026

This PR seems to contain a lot of unrelated changes. Or are they related?

I think this workaround has to be enabled by a parameter (that defaults to false).

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.

2 participants