mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-03 00:18:28 +00:00
Added support for the PowerA Fusion Pro Wireless Controller in Bluetooth mode
This controller shows up with a VID/PID of 0, but has full functionality over Bluetooth
This commit is contained in:
@@ -573,10 +573,15 @@ static GamepadMapping_t *SDL_CreateMappingForHIDAPIGamepad(SDL_JoystickGUID guid
|
||||
/* GameCube driver has 12 buttons and 6 axes */
|
||||
SDL_strlcat(mapping_string, "a:b0,b:b1,dpdown:b6,dpleft:b4,dpright:b5,dpup:b7,lefttrigger:a4,leftx:a0,lefty:a1,rightshoulder:b9,righttrigger:a5,rightx:a2,righty:a3,start:b8,x:b2,y:b3,", sizeof(mapping_string));
|
||||
} else if (vendor == USB_VENDOR_NINTENDO &&
|
||||
guid.data[15] != k_eSwitchDeviceInfoControllerType_Unknown &&
|
||||
guid.data[15] != k_eSwitchDeviceInfoControllerType_ProController &&
|
||||
guid.data[15] != k_eWiiExtensionControllerType_Gamepad &&
|
||||
guid.data[15] != k_eWiiExtensionControllerType_WiiUPro) {
|
||||
(guid.data[15] == k_eSwitchDeviceInfoControllerType_NESLeft ||
|
||||
guid.data[15] == k_eSwitchDeviceInfoControllerType_NESRight ||
|
||||
guid.data[15] == k_eSwitchDeviceInfoControllerType_SNES ||
|
||||
guid.data[15] == k_eSwitchDeviceInfoControllerType_N64 ||
|
||||
guid.data[15] == k_eSwitchDeviceInfoControllerType_SEGA_Genesis ||
|
||||
guid.data[15] == k_eWiiExtensionControllerType_None ||
|
||||
guid.data[15] == k_eWiiExtensionControllerType_Nunchuk ||
|
||||
guid.data[15] == k_eSwitchDeviceInfoControllerType_JoyConLeft ||
|
||||
guid.data[15] == k_eSwitchDeviceInfoControllerType_JoyConRight)) {
|
||||
switch (guid.data[15]) {
|
||||
case k_eSwitchDeviceInfoControllerType_NESLeft:
|
||||
case k_eSwitchDeviceInfoControllerType_NESRight:
|
||||
|
Reference in New Issue
Block a user