Added support for the Wii Remote with the Classic Controller Pro extension

Also changed event order to: buttons, triggers, axes, for consistency with other drivers
This commit is contained in:
Sam Lantinga
2022-09-05 14:31:25 -07:00
parent a0f143fc93
commit a61b823da8
2 changed files with 19 additions and 24 deletions

View File

@@ -574,6 +574,8 @@ static ControllerMapping_t *SDL_CreateMappingForHIDAPIController(SDL_JoystickGUI
} else if (vendor == USB_VENDOR_NINTENDO &&
guid.data[15] != k_eSwitchDeviceInfoControllerType_Unknown &&
guid.data[15] != k_eSwitchDeviceInfoControllerType_ProController &&
guid.data[15] != k_eWiiExtensionControllerType_ClassicController &&
guid.data[15] != k_eWiiExtensionControllerType_ClassicControllerPro &&
guid.data[15] != k_eWiiExtensionControllerType_WiiUPro) {
switch (guid.data[15]) {
case k_eSwitchDeviceInfoControllerType_NESLeft: