From f1aa84341519d1a96e912dbbc4bd5b96b57a6152 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Thu, 25 Aug 2022 21:51:20 -0700 Subject: [PATCH] Don't report rumble capability for Nintendo Online controllers --- src/joystick/hidapi/SDL_hidapi_switch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/joystick/hidapi/SDL_hidapi_switch.c b/src/joystick/hidapi/SDL_hidapi_switch.c index c58895665..524b45f20 100644 --- a/src/joystick/hidapi/SDL_hidapi_switch.c +++ b/src/joystick/hidapi/SDL_hidapi_switch.c @@ -1572,7 +1572,7 @@ HIDAPI_DriverSwitch_GetJoystickCapabilities(SDL_HIDAPI_Device *device, SDL_Joyst SDL_DriverSwitch_Context *ctx = (SDL_DriverSwitch_Context *)device->context; Uint32 result = 0; - if (!ctx->m_bInputOnly) { + if (ctx->m_eControllerType == k_eSwitchDeviceInfoControllerType_ProController && !ctx->m_bInputOnly) { /* Doesn't have an RGB LED, so don't return SDL_JOYCAP_LED here */ result |= SDL_JOYCAP_RUMBLE; }