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 - [Patch] macOS Controller DB does not have Steam Virtual GamePad entries, kills all controller input
Summary: [Patch] macOS Controller DB does not have Steam Virtual GamePad entries, kill...
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: joystick (show other bugs)
Version: HG 2.1
Hardware: All Mac OS X (All)
: P2 critical
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-09 14:46 UTC by Ethan Lee
Modified: 2017-11-21 00:21 UTC (History)
0 users

See Also:


Attachments
Patch to fix Steam Controller support on macOS (1.81 KB, patch)
2017-11-20 19:02 UTC, Ethan Lee
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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