Skip to content

Conversation

TedVanderfeen
Copy link
Contributor

See #548

Creating as draft for now until I've had a chance to test it.

The code for the joy_node_sdl is from here with some edits by me so that it loads the default mappings into params if none are provided. This gets around needing to use the launch file that the devs above implemented if you just want "normal" behaviour when launching the node. I also fixed up some of the logic they had in the cmakelist for joy as it was a little confusing.

See https://github.com/TedVanderfeen/joystick_drivers for the changes that went into generating the .patch file.

@Tobias-Fischer Tobias-Fischer marked this pull request as ready for review September 22, 2025 00:10
@TedVanderfeen
Copy link
Contributor Author

Currently not working on MacOS. Not sure if it's an SDL problem or a problem with the package yet. Will investigate.

@Tobias-Fischer Tobias-Fischer marked this pull request as draft September 22, 2025 01:13
@TedVanderfeen
Copy link
Contributor Author

TedVanderfeen commented Sep 23, 2025

So, it looks like the SDL libraries on Conda-forge that are built for osx-arm64 are missing, something....

When I build SDL locally and run their controller/joystick/gamepad testing script, everything works. When I try the same script against the libraries and headers that Conda-forge supplies, my controller doesn't attach at all. I tried to install hidapi in case the Conda-forge version was dependant on something that was included when I built from source, but it isn't available for arm64 and I couldn't get pixi to pull the x86 version. From what I can see, SDL should fall back to iokit on MacOS devices. So this might be what is missing from the Conda-forge build. Will keep investigating.

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.

1 participant