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 5047

Summary: Build error in SDL_hidapi_steam.c
Product: SDL Reporter: David Ludwig <dll>
Component: joystickAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: HG 2.0   
Hardware: iPhone/iPod touch   
OS: Other   
Attachments: Fix #1

Description David Ludwig 2020-03-20 17:37:03 UTC
Created attachment 4272 [details]
Fix #1

When trying to build the latest from SDL HG (at changeset 13646:784ce9766fb9), specifically for iOS via CMake, I get build errors in SDL_hidapi_steam.c, whereby HIDAPI_JoystickDisconnected is being called with the wrong number of arguments.

I'll attach a potential fix.  I'm unfamiliar with that code, and don't want to break anything there, so a code review seems good.  The patch is pretty small (two lines changed).
Comment 1 Sam Lantinga 2020-03-20 19:09:04 UTC
This is fixed, thanks!