We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 5472

Summary: windows/SDL_mmjoystick.c not functional
Product: SDL Reporter: Ozkan Sezer <sezeroz>
Component: joystickAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: HG 2.0   
Hardware: All   
OS: Windows (All)   
Attachments: patch that ports SDL_mmjoystick.c to struct _SDL_JoystickDriver
winmm and psp joystick patch

Description Ozkan Sezer 2021-01-17 02:56:03 UTC
Since commit https://hg.libsdl.org/SDL/rev/399cc39583cc, windows
SDL_mmjoystick.c isn't functional:  its SDL_SYS_JoystickXX procs
aren't called. We can adapt it to struct _SDL_JoystickDriver (if
its missed update wasn't intentional), or we can remove it if it
is way too outdated / unmaintainable.

psp/SDL_sysjoystick.c is in the same situation, although I don't
know whether it is (has ever been) functional..
Comment 1 Ozkan Sezer 2021-01-22 18:03:12 UTC
Created attachment 4687 [details]
patch that ports SDL_mmjoystick.c to struct _SDL_JoystickDriver

Compile-tested only.
Comment 2 Ozkan Sezer 2021-01-22 20:39:29 UTC
Created attachment 4690 [details]
winmm and psp joystick patch


Updated patch that ports winmm and psp joystick sources
to struct _SDL_JoystickDriver.  Build-tested only.
Comment 3 Ozkan Sezer 2021-01-23 14:31:11 UTC
Applied the patch as https://hg.libsdl.org/SDL/rev/9378185b458d