| Summary: | Incorrect Switch Pro Controller face buttons when SDL_HINT_GAMECONTROLLER_USE_BUTTON_LABELS disabled | ||
|---|---|---|---|
| Product: | SDL | Reporter: | jibb |
| Component: | joystick | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | matpow2 |
| Version: | 2.0.14 | ||
| Hardware: | x86_64 | ||
| OS: | Windows 10 | ||
|
Description
jibb
2021-01-04 13:37:55 UTC
Does it work correctly with the built-in SDL mappings, if you don't use gamecontrollerdb.txt? That mapping file doesn't support the hint. (In reply to Sam Lantinga from comment #1) > Does it work correctly with the built-in SDL mappings, if you don't use > gamecontrollerdb.txt? That mapping file doesn't support the hint. I've just tested it out without loading gamecontrollerdb.txt, and it still behaves incorrectly as described. Also seeing this on 2.0.14. This is most likely a regression, since we weren't seeing this on an earlier SDL version. I suspect it might be caused by this commit: https://github.com/spurious/SDL-mirror/commit/a569b211881c6d4c73f3f1019e9f66e754ca546b#diff-da9344d94c66b8c702a45e7649f412039f08bba83bd82de33f5c80ea9c8c39d5 It seems like both the HIDAPI driver and SDL_gamecontroller.c will try to swap the buttons if the hint is set to 0, causing the button remap to cancel out. Fixed, thanks guys! https://hg.libsdl.org/SDL/rev/abc272ee7adf |