| Summary: | devel/sdl20: Joystick not working with latest SDL | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Ports & Packages | Reporter: | Ganael LAPLANCHE <martymac> | ||||
| Component: | Individual Port(s) | Assignee: | Dmitry Marakasov <amdmi3> | ||||
| Status: | Closed Overcome By Events | ||||||
| Severity: | Affects Some People | CC: | diizzy, martymac | ||||
| Priority: | --- | Keywords: | patch-ready | ||||
| Version: | Latest | Flags: | bugzilla:
maintainer-feedback?
(amdmi3) |
||||
| Hardware: | Any | ||||||
| OS: | Any | ||||||
| Attachments: |
|
||||||
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. |
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.