SDL/src/joystick
Cameron Gutman f4d58689e0 Fix Xbox Series X controller on macOS
There were two different implementations of IsBluetoothXboxOneController(), one
in SDL_hidapi_xbox360.c and one in SDL_hidapi_xboxone.c. The latter had been
updated to include USB_PRODUCT_XBOX_ONE_SERIES_X_BLUETOOTH while the former had
not.

This mismatch led to the Xbox Series X failing on macOS only. We have special
code for handling the 360Controller driver for macOS which requires us to use
the Xbox 360 driver for wired Xbox One controllers, and the SDL_hidapi_xbox360
version of IsBluetoothXboxOneController() was used to determine which devices
were wired.

In addition to adding the missing USB_PRODUCT_XBOX_ONE_SERIES_X_BLUETOOTH, this
change moves IsBluetoothXboxOneController() into a single shared function which
will ensure this bug won't happen again.
2021-02-10 10:22:19 -05:00
..
android Updated copyright for 2021 2021-01-02 10:25:38 -08:00
bsd renamed SDL_JOYSTICK_USBHID_MACHINE_JOYSTICK_H to SDL_HAVE_MACHINE_JOYSTICK_H 2021-01-24 00:51:25 -05:00
darwin Fixed bug 5195 - Replugging in "mixed" controller types crashes on macOS 2021-01-14 15:03:11 -08:00
dummy Updated copyright for 2021 2021-01-02 10:25:38 -08:00
emscripten Updated copyright for 2021 2021-01-02 10:25:38 -08:00
haiku Updated copyright for 2021 2021-01-02 10:25:38 -08:00
hidapi Fix Xbox Series X controller on macOS 2021-02-10 10:22:19 -05:00
iphoneos Updated copyright for 2021 2021-01-02 10:25:38 -08:00
linux Updated copyright for 2021 2021-01-02 10:25:38 -08:00
os2 old os2 analogue joystick code ported from SDL-1.2. disabled by default, 2021-01-24 00:51:25 -05:00
psp move outdated winmm and psp joystick codes to struct _SDL_JoystickDriver 2021-01-24 00:51:25 -05:00
steam Updated copyright for 2021 2021-01-02 10:25:38 -08:00
virtual SDL_virtualjoystick.c: remove wrong #endif comment. 2021-01-24 00:51:24 -05:00
windows Don't uncorrelate while rumble is active and stay correlated longer in case raw input messages are lagging a bit. 2021-02-10 10:22:19 -05:00
check_8bitdo.sh Fixed running on older versions of iOS 2020-04-27 13:31:10 -07:00
controller_type.h Hint SDL_HINT_JOYSTICK_HIDAPI_JOY_CONS added so we can recognise a Joy-Con as half a Pro Controller, so we can read its analog input and read its sensors just like we do a Pro Controller. 2021-01-24 00:51:25 -05:00
SDL_gamecontroller.c Fixed detecting the paddles on the Xbox Elite Series 1 controller 2021-02-10 10:22:19 -05:00
SDL_gamecontrollerdb.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_joystick.c Fix Xbox Series X controller on macOS 2021-02-10 10:22:19 -05:00
SDL_joystick_c.h Fix Xbox Series X controller on macOS 2021-02-10 10:22:19 -05:00
SDL_sysjoystick.h move outdated winmm and psp joystick codes to struct _SDL_JoystickDriver 2021-01-24 00:51:25 -05:00
sort_controllers.py Added support for SDL hints in the game controller mapping database 2020-03-12 19:47:28 -07:00
usb_ids.h Fixed bug 5466 - Add haptic support for Stadia Controller 2021-01-24 00:51:26 -05:00