Created attachment 251619 [details] Joystick handling fix for SDL 2.0 Hello Dmitry, devel/sdl20 recently switched to using CMake. Since that update (commit c14f535a), my XBox One controller is not working anymore with certain apps. Previous update (c807eaa9) recognizes it and makes it work perfectly. Digging into that, I found that file src/joystick/linux/SDL_sysjoystick.c (the one handling input from /dev/input/xxx devices) is not compiled anymore with latest update (while it was in previous version). The attached patch fixes the situation and makes the joystick work again. Cheers, Ganael.
Hi, Can you please submit it upstream? Best regards, Daniel
Hello Daniel, I have reported the bug here: https://github.com/libsdl-org/SDL/pull/10087 Cheers, Ganael.
The change has been merged upstream. I presume I can close that PR for now, as the fix will come with next port update. Cheers, Ganael.
Please never close my PRs. I could've backported the fix to the earlier version, but this PR was lost.
(In reply to Ganael LAPLANCHE from comment #2) Sorry for the late reply, thanks for fixing it upstream! :)
(In reply to Dmitry Marakasov from comment #4) Hello Dmitry, Sorry, I may have acted a bit too fast. You're right, it's better to leave PRs opened for maintainers to review them. I'll be more careful next time ! Cheers, Ganael