mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-07 03:48:14 +00:00
Fixed third-party Nintendo Switch Pro controllers shutting down when we try to set the home LED.
This fixes the PDP Afterglow Wireless Deluxe Controller.
This commit is contained in:
@@ -1038,6 +1038,11 @@ static SDL_bool HasHomeLED(SDL_DriverSwitch_Context *ctx)
|
|||||||
return SDL_FALSE;
|
return SDL_FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Third party controllers don't have a home LED and will shut off if we try to set it */
|
||||||
|
if (ctx->m_eControllerType == k_eSwitchDeviceInfoControllerType_LicProController) {
|
||||||
|
return SDL_FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
/* The Nintendo Online classic controllers don't have a Home LED */
|
/* The Nintendo Online classic controllers don't have a Home LED */
|
||||||
if (vendor_id == USB_VENDOR_NINTENDO &&
|
if (vendor_id == USB_VENDOR_NINTENDO &&
|
||||||
ctx->m_eControllerType > k_eSwitchDeviceInfoControllerType_ProController) {
|
ctx->m_eControllerType > k_eSwitchDeviceInfoControllerType_ProController) {
|
||||||
|
Reference in New Issue
Block a user