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 3951

Summary: [Patch] macOS Controller DB does not have Steam Virtual GamePad entries, kills all controller input
Product: SDL Reporter: Ethan Lee <flibitijibibo>
Component: joystickAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: critical    
Priority: P2    
Version: HG 2.1   
Hardware: All   
OS: Mac OS X (All)   
Attachments: Patch to fix Steam Controller support on macOS

Description Ethan Lee 2017-11-09 14:46:43 UTC
As of the current SDL revision, there are no entries for the GUIDs used by the Steam Virtual GamePad on macOS. This results in both the virtual gamepad _and_ the real device not getting picked up by SDL, resulting in no controls for the player. For Steam Controllers in particular this means there is no way to actually control the game at all unless the user makes a whole new binding set using keyboard/mouse controls.

Repro Steps:

- Connect any SDL-recognized controller other than the Steam Controller
- Open up any SDL game on macOS, outside of Steam
- Input should work
- Close the game, go into Steam, enable configuration support in the Steam Input Menu
- Open up the same game through Steam
- No input!

As an added step, printf the GUID of the virtual gamepad. Testing locally, I got "GamePad-1", with GUID 030000005e0400008e02000001000000.
Comment 1 Ethan Lee 2017-11-20 19:02:39 UTC
Created attachment 3096 [details]
Patch to fix Steam Controller support on macOS

Using General Arcade's config tool I was able to squeeze out a config for the virtual gamepad - note that the guide button is not in the config since Steam intercepts that button, so I couldn't actually get it to register in the tool.

This patch fixes the problem for all of my games.
Comment 2 Sam Lantinga 2017-11-21 00:21:51 UTC
Patch added, thanks!
https://hg.libsdl.org/SDL/rev/cef120429a95