| Summary: | [PATCH][REGRESSION] HIDAPI uses incorrect mapping for Xbox One S BT (0x045e 0x02e0) | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Cameron Gutman <cameron.gutman> |
| Component: | joystick | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | sezeroz |
| Version: | 2.0.9 | ||
| Hardware: | x86 | ||
| OS: | macOS 10.13 | ||
| Attachments: | Patch to ignore this old firmware for HIDAPI | ||
|
Description
Cameron Gutman
2018-11-20 06:19:51 UTC
I don't have access to the older firmware. Can you provide a tested patch? Thanks! I'm in the same boat too. I might be able to get the user to test some changes though. How do you prefer I solve this? Should we handle it in HIDAPI_DriverXboxOneS_HandleStatePacket() itself or could/should we make a separate mapping for HIDAPI's joystick GUID for this device? The mapping for all HIDAPI controllers is fixed, we should handle it in HIDAPI_DriverXboxOneS_HandleStatePacket() Created attachment 3772 [details]
Patch to ignore this old firmware for HIDAPI
I can't seem to get my hands on this older firmware, so I've posted this patch as a workaround. Rather than having to set SDL_HINT_JOYSTICK_HIDAPI_XBOX=0 and disable all HIDAPI support for Xbox gamepads, we can just ignore the single broken one and leave the others intact. The Cocoa joystick code will handle this gamepad properly using the existing mapping that ships with SDL.
That works for me... https://hg.libsdl.org/SDL/rev/096f2f3c4bdc |