mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-06 18:06:26 +00:00
Don't report rumble capability for Nintendo Online controllers
This commit is contained in:
@@ -1572,7 +1572,7 @@ HIDAPI_DriverSwitch_GetJoystickCapabilities(SDL_HIDAPI_Device *device, SDL_Joyst
|
|||||||
SDL_DriverSwitch_Context *ctx = (SDL_DriverSwitch_Context *)device->context;
|
SDL_DriverSwitch_Context *ctx = (SDL_DriverSwitch_Context *)device->context;
|
||||||
Uint32 result = 0;
|
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 */
|
/* Doesn't have an RGB LED, so don't return SDL_JOYCAP_LED here */
|
||||||
result |= SDL_JOYCAP_RUMBLE;
|
result |= SDL_JOYCAP_RUMBLE;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user