[WIP] SDL2 on macOS detects joysticks only with SDL2_INIT_VIDEO#302
[WIP] SDL2 on macOS detects joysticks only with SDL2_INIT_VIDEO#302EliaCereda wants to merge 2 commits into
Conversation
|
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). |
|
Sorry for not noticing your reply earlier @peci1. Ideally SDL would fix this upstream, by properly setting up the macOS event loop even without In the meantime, my changes are indeed related: in The changes to |
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?