Bug 279907

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: LatestFlags: bugzilla: maintainer-feedback? (amdmi3)
Hardware: Any   
OS: Any   
Attachments:
Description Flags
Joystick handling fix for SDL 2.0 none

Description Ganael LAPLANCHE freebsd_committer freebsd_triage 2024-06-22 13:04:16 UTC
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.
Comment 1 Daniel Engberg freebsd_committer freebsd_triage 2024-06-22 13:34:19 UTC
Hi,

Can you please submit it upstream?

Best regards,
Daniel
Comment 2 Ganael LAPLANCHE freebsd_committer freebsd_triage 2024-06-22 14:02:39 UTC
Hello Daniel,

I have reported the bug here: https://github.com/libsdl-org/SDL/pull/10087

Cheers,

Ganael.
Comment 3 Ganael LAPLANCHE freebsd_committer freebsd_triage 2024-06-22 15:22:10 UTC
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.