SDL2/src/joystick
Leonardo Brondani Schenkel 6f06e4bc80 Add Linux mapping for 8BitDo Pro 2 Wired Controller for Xbox
Without these mappings, this controller "kinda" works out of the box:
- `SDL_GameControllerMapping()` works because it will notice "Xbox" in
  the name and use the default XInput mappings
- `SDL_GameControllerMappingForGUID()` will not find any mapping

lsusb:
```
ID 2dc8:2000 8BitDo 8BitDo Pro 2 Wired Controller for Xbox
```

In Linux this controller is supported by two drivers:
- `xpad` (built-in to the kernel), exposes the controller name from the
  USB descriptor and the GUID starts with 03 (0x03 = BUS_USB)
- `xone` (https://github.com/medusalix/xone), exposes a virtual
  controller which is always named "Microsoft X-Box One pad" and the
  GUID starts with 06 (0x06 = BUS_VIRTUAL)

This commit adds the 2 GUIDs from both drivers so mappings will always
be found and the real controller name will always be reported.

(cherry picked from commit 4266cf8504)
2023-02-05 08:45:24 -08:00
..
android Updated copyright for 2023 2023-01-09 09:41:41 -08:00
apple Updated copyright for 2023 2023-01-09 09:41:41 -08:00
bsd Updated copyright for 2023 2023-01-09 09:41:41 -08:00
darwin Updated copyright for 2023 2023-01-09 09:41:41 -08:00
dummy Updated copyright for 2023 2023-01-09 09:41:41 -08:00
emscripten Updated copyright for 2023 2023-01-09 09:41:41 -08:00
haiku Updated copyright for 2023 2023-01-09 09:41:41 -08:00
hidapi Simplify flags testing (#7220) 2023-02-03 13:08:42 -08:00
linux Updated API for SDL_JoystickID sign change 2023-01-13 14:20:59 -08:00
n3ds Updated copyright for 2023 2023-01-09 09:41:41 -08:00
ps2 Updated copyright for 2023 2023-01-09 09:41:41 -08:00
psp Updated copyright for 2023 2023-01-09 09:41:41 -08:00
steam Updated API for SDL_JoystickID sign change 2023-01-13 14:20:59 -08:00
virtual Updated copyright for 2023 2023-01-09 09:41:41 -08:00
vita joystick/vita: add some sanity check to SDL_GetJoystickInstanceID result 2023-01-11 21:56:50 +03:00
windows Simplify flags testing (#7220) 2023-02-03 13:08:42 -08:00
check_8bitdo.sh SDL API renaming: SDL_gamecontroller.h 2022-12-27 09:47:24 -08:00
controller_type.c Added support for the ThrustMaster eSwap PRO Controller Xbox 2023-01-03 15:12:18 -08:00
controller_type.h Removed the vi format comments from the source 2022-12-26 11:17:23 -08:00
SDL_gamepad.c Renamed SDL_GetGamepadNumTouchpads and SDL_GetGamepadNumTouchpadFingers to match the new convention 2023-01-24 13:47:30 -08:00
SDL_gamepad_c.h Updated copyright for 2023 2023-01-09 09:41:41 -08:00
SDL_gamepad_db.h Add Linux mapping for 8BitDo Pro 2 Wired Controller for Xbox 2023-02-05 08:45:24 -08:00
SDL_joystick.c Make sure count is 0 in out of memory conditions 2023-01-31 10:04:51 -08:00
SDL_joystick_c.h Updated copyright for 2023 2023-01-09 09:41:41 -08:00
SDL_sysjoystick.h Updated copyright for 2023 2023-01-09 09:41:41 -08:00
sort_controllers.py Don't accept official mappings for controllers that aren't unique 2023-02-02 08:39:54 -08:00
usb_ids.h Updated copyright for 2023 2023-01-09 09:41:41 -08:00