| Summary: | Triggers not recognized on Xbox One S controller in Bluetooth mode | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Misty De Meo <mistydemeo> |
| Component: | joystick | Assignee: | Ryan C. Gordon <icculus> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | icculus |
| Version: | HG 2.1 | ||
| Hardware: | x86 | ||
| OS: | macOS 10.12 | ||
| Attachments: |
Fix axis detection for Xbox One S Bluetooth controller on OS X
Add controller mapping for Xbox One S wireless controller mapping in Bluetooth mode on OS X |
||
|
Description
Misty De Meo
2017-01-22 08:45:22 UTC
Sam, do you have a One S controller laying around? I only have the non-Bluetooth Xbox One controller. --ryan. (In reply to Ryan C. Gordon from comment #1) > Sam, do you have a One S controller laying around? I only have the > non-Bluetooth Xbox One controller. Just impulse-bought one of these on Amazon; if no one beats me to it, I'll take a look soon. :) --ryan. (In reply to Ryan C. Gordon from comment #2) > Just impulse-bought one of these on Amazon; if no one beats me to it, I'll > take a look soon. :) My controller arrived and it works properly with SDL on macOS 10.12.2, but I have no idea what firmware is on it; is there a reasonable way to determine/upgrade the firmware version? --ryan. If you have Windows, the Xbox Accessories app (distributed in the Windows store) will prompt you to upgrade if you plug in a controller with older firmware. I'm not sure if there's a way to upgrade without that app or an Xbox One. wrt checking the version, what's your product ID when connected via Bluetooth? When I compared to the controller with older firmware I had access to, the product ID was different between the two controllers (0x02E0 on the older one vs 0x02ED), while the firmware version and vendor ID are the same. Got it - patch incoming. :) Created attachment 2684 [details]
Fix axis detection for Xbox One S Bluetooth controller on OS X
Created attachment 2685 [details]
Add controller mapping for Xbox One S wireless controller mapping in Bluetooth mode on OS X
It looks like this version of the firmware changed the mapping; aside from changing a few buttons around, the triggers are now mapped as accelerator and brake axes. On Darwin, only rudder and throttle were being mapped as axes for inputs from the simulation page, so these two axes were unaddressible. The patch I submitted just adds accelerator and brake as axes within AddHIDElement; I also submitted a second patch with a gamecontrollerdb mapping for this controller. (In reply to Misty De Meo from comment #9) > unaddressible. The patch I submitted just adds accelerator and brake as axes > within AddHIDElement; I also submitted a second patch with a > gamecontrollerdb mapping for this controller. These patches are now https://hg.libsdl.org/SDL/rev/f4a771647ecd and https://hg.libsdl.org/SDL/rev/ca523d8f1af2 ...thanks! --ryan. |